Skip to content

ci: setup npm publish workflow #1

ci: setup npm publish workflow

ci: setup npm publish workflow #1

Workflow file for this run

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