Skip to content

Commit

Permalink
chore: add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Rigo authored and Rigo committed Aug 5, 2023
1 parent 49d7ee8 commit 7e4dba8
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Publish to NPM
on:
release:
types: [created]
jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
node-version: [18.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v2

- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}

- run: npm install -g lerna
- run: yarn install
- run: cd packages/lib
- run: yarn build

- name: Publish package on NPM
run: npm publish --access=public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 7e4dba8

Please sign in to comment.