2.1.11 [skip build] #57
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
name: publish | |
on: | |
push: | |
tags: | |
- '*' | |
jobs: | |
build: | |
uses: ./.github/workflows/build.yml | |
publish: | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/download-artifact@v3 | |
with: | |
name: packages | |
path: packages | |
- uses: actions/download-artifact@v3 | |
with: | |
name: benchmark | |
path: benchmark/build | |
- run: cp README.md packages/spectypes | |
- run: cp README.md packages/babel-plugin-spectypes | |
- run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc | |
- run: npm ci | |
- name: setup git | |
run: | | |
git config user.name "GitHub Actions Bot" | |
git config user.email "<>" | |
- name: benchmark | |
run: | | |
npm run report -w benchmark | |
git commit -am "benchmark report [skip ci]" | |
git push origin HEAD:main | |
- run: npm publish -w packages |