Skip to content

add this branch to deploy workflow for testing #4

add this branch to deploy workflow for testing

add this branch to deploy workflow for testing #4

Workflow file for this run

name: Publish npm package
on:
push:
branches:
- master
- npm-package-deploy
jobs:
publish-github:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: '14'
- name: Install dependencies
run: npm ci
- name: Build package
run: npm run build
- name: Publish package to GitHub Package Registry
run: npm publish --registry=https://npm.pkg.github.com
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Publish package to NPM
run: npm publish --registry=https://registry.npmjs.org
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}