Merge pull request #36 from lingo-app/chunky-uploads #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- "master" | |
name: Master | |
jobs: | |
test: | |
name: Test & Deploy | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "20.12.2" | |
cache: yarn | |
scope: "@lingo-app" | |
- name: Install | |
run: yarn | |
- name: Validate | |
run: yarn validate | |
- name: Test | |
run: yarn test | |
- name: Build | |
run: yarn build | |
- name: Deploy NPM | |
run: | | |
yarn npm publish --tolerate-republish | |
env: | |
NPM_REGISTRY: https://registry.npmjs.org/ | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_AUTH }} | |
- name: Deploy GITHUB | |
run: | | |
yarn npm publish --tolerate-republish | |
env: | |
NPM_REGISTRY: https://npm.pkg.github.com | |
NPM_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |