Npm V3 Publish #16
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: Npm V3 Publish | |
on: | |
push: | |
tags: | |
- v**-v3 | |
jobs: | |
publish: | |
name: Build And Publish | |
runs-on: ubuntu-latest | |
steps: | |
- name: Get Node | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 16 | |
registry-url: https://registry.npmjs.org/ | |
- name: Checkout Code | |
uses: actions/checkout@v3 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8 | |
run_install: true | |
- name: Build | |
run: npm run build:v3 | |
- name: Publish | |
run: cd packages/v3 && npm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |