Skip to content
This repository has been archived by the owner on Dec 25, 2023. It is now read-only.

Commit

Permalink
Publish new releases to NPM (#11)
Browse files Browse the repository at this point in the history
* Publish new releases to NPM

* update comment
  • Loading branch information
qwerty287 authored Oct 22, 2022
1 parent 44bbca9 commit 283ba9c
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish

on:
release:
types: [published]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 18.x
registry-url: https://registry.npmjs.org/
- run: npm install
- run: npm publish --access public
env:
# (Name, value)-pairs for access tokens are configured at https://github.com/LycheeOrg/basicContext/settings/secrets/actions
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 comments on commit 283ba9c

Please sign in to comment.