Skip to content

Workflow file for this run

name: Build and Test Package and (publish)
on: [push]
jobs:
test:
if: contains(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 20
- run: yarn
- run: yarn test
- run: yarn build
- name: Publish package
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
yarn publish --access public