Skip to content

feat: use @arcblock/pm2.io instead of @pm2/io (#1) #1

feat: use @arcblock/pm2.io instead of @pm2/io (#1)

feat: use @arcblock/pm2.io instead of @pm2/io (#1) #1

name: publish-to-npm
on:
push:
branches: [release]
jobs:
publish-to-npm:
runs-on: ubuntu-latest
steps:
- name: Checkout release branch code
uses: actions/checkout@v3
with:
fetch-depth: 1
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: "npm"
registry-url: "https://registry.npmjs.org"
- name: Install deps
run: npm install
- name: Build
run: npm run build
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}