Skip to content

2.1.11 [skip build] #57

2.1.11 [skip build]

2.1.11 [skip build] #57

Workflow file for this run

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