forked from hakimel/reveal.js
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add NPM package publication workflow
- Loading branch information
1 parent
6b8c64f
commit 3e20f31
Showing
2 changed files
with
41 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
name: "Publish NPM package" | ||
|
||
on: | ||
push: | ||
tags: | ||
- "*" | ||
|
||
jobs: | ||
publish: | ||
name: "Publish" | ||
runs-on: "ubuntu-22.04" | ||
|
||
permissions: | ||
contents: "read" | ||
packages: "write" | ||
|
||
steps: | ||
- name: "Check out repository" | ||
id: "checkout" | ||
uses: "actions/checkout@v4" | ||
|
||
- name: "Set up Node.js" | ||
id: "setup-node" | ||
uses: "actions/setup-node@v4" | ||
with: | ||
registry-url: "https://npm.pkg.github.com" | ||
cache: "npm" | ||
|
||
- name: "Run npm clean-install" | ||
id: "run-npm-clean-install" | ||
run: | | ||
npm clean-install | ||
- name: "Run npm publish" | ||
id: "run-npm-publish" | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
run: | | ||
npm publish --access 'public' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters