Skip to content

Commit

Permalink
npm publish on release
Browse files Browse the repository at this point in the history
Signed-off-by: Jérôme Jutteau <[email protected]>
  • Loading branch information
jerome-jutteau committed Jul 25, 2022
1 parent 7052f18 commit 066b8a8
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Release

on:
release:
types: [published]

jobs:
release:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.3.0
- name: Publish on NPM
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN_OSC_SDK_JS }}
run:
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc
npm publish

0 comments on commit 066b8a8

Please sign in to comment.