ci: setup npm publish workflow #1
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: cd | |
on: | |
# TODO: remove this after testing publish workflow | |
pull_request: | |
branches: [master] | |
push: | |
branches: [master] | |
jobs: | |
npm: | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout repository | |
uses: actions/[email protected] | |
- name: Setup Node | |
uses: actions/[email protected] | |
with: | |
node-version: 20 | |
- name: Install Node modules | |
run: npm install | |
- name: Publish sdk tag to npm | |
- uses: JS-DevTools/[email protected] | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
tag: sdk | |
dry-run: true | |
- name: Publish latest tag to npm | |
- uses: JS-DevTools/[email protected] | |
with: | |
token: ${{ secrets.NPM_TOKEN }} | |
tag: latest | |
dry-run: true |