Skip to content

Commit

Permalink
Add action to publish to NPM after publishing a release (#82)
Browse files Browse the repository at this point in the history
---------

Co-authored-by: Evan Masseau <>
  • Loading branch information
evan-masseau committed Feb 7, 2024
1 parent 9171062 commit db058f6
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish-sdk.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Publish SDK to NPM

on:
release:
types: [ published ]

jobs:
publish-sdk:
runs-on: ubuntu-22.04
permissions:
contents: read
packages: write

steps:
- uses: actions/checkout@v4

- name: Setup
uses: ./.github/actions/setup

- name: Prepare
run: yarn prepare

- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
registry: "https://npm.pkg.github.com"

0 comments on commit db058f6

Please sign in to comment.