Skip to content

Commit

Permalink
chore: adding ghwf for publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
scolear committed Jul 22, 2024
1 parent 5e7b1d5 commit 4a02117
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/publish-on-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Build and Publish Package

on:
release:
types: [published]

jobs:
build-and-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Use Node.js
uses: ./.github/actions/provision
with:
node-version: '20'

- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build package
run: yarn build

- name: Publish to npm
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 4a02117

Please sign in to comment.