Skip to content

package-publish

package-publish #2

name: package-publish
on: workflow_dispatch
jobs:
package-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: '18.x'
registry-url: 'https://registry.npmjs.org'
- name: Install Package
run: yarn
- name: Build
run: yarn prepare
- name: Publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm whoami && npm publish --access public