bump v6.0.3 (#49) #18
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: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: checkout | |
uses: actions/checkout@v3 | |
- name: setup node env | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
cache: 'yarn' | |
registry-url: 'https://registry.npmjs.org' | |
- name: build | |
run: | | |
yarn install --immutable | grep -v 'YN0013' | |
yarn build | |
- name: publish | |
env: | |
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
run: | | |
echo npmAuthToken: "\${NPM_AUTH_TOKEN}" >> ./.yarnrc.yml | |
yarn publish | |
- name: cleanup | |
run: | | |
git checkout ./.yarnrc.yml | |