Skip to content

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

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

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

name: publish-beta-to-npm
on:
push:
branches: [master]
jobs:
publish-beta-to-npm:
runs-on: ubuntu-latest
if: "! contains(toJSON(github.event.commits.*.message), '[skip ci]')"
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: |
node scripts/update-beta-package-version.js
cat package.json | grep version
npm publish --tag beta
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}