Workflow file for this run
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: | |
release: | |
types: [published] | |
jobs: | |
verify: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: "16" | |
cache: yarn | |
- run: yarn install --immutable | |
- run: yarn build | |
- run: yarn test | |
- run: yarn test:integration | |
env: | |
CI_CHALK_CLIENT_ID: ${{ secrets.CHALK_CLIENT_ID }} | |
CI_CHALK_CLIENT_SECRET: ${{ secrets.CHALK_CLIENT_SECRET }} | |
publish-npm: | |
# Note: for now, we don't make the publish job wait on verification, just in case an integration test flakes or something. | |
# needs: verify | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
always-auth: true | |
node-version: "16" | |
cache: yarn | |
- run: yarn install | |
# https://github.com/yarnpkg/berry/issues/4424 | |
- run: npm version ${{ github.event.release.tag_name }} --no-git-tag-version | |
- run: yarn prebuild | |
- run: yarn config set npmAuthToken "${{ secrets.NPM_AUTOMATION_TOKEN }}" | |
- run: yarn npm publish --access public |