Skip to content

Publish Package to npmjs #7

Publish Package to npmjs

Publish Package to npmjs #7

Workflow file for this run

name: Publish Package to npmjs
on:
release:
types: [created]
workflow_dispatch:
jobs:
library:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup
uses: ./.github/actions/setup
- name: Build package
run: yarn prepare
- name: Pack package
run: yarn pack
- name: Write authtoken
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTOMATION_TOKEN }}" > ~/.npmrc
- name: Publish package
run: yarn npm publish --access public