File tree Expand file tree Collapse file tree 1 file changed +40
-0
lines changed
Expand file tree Collapse file tree 1 file changed +40
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Publish Package to npmjs
2+
3+ on :
4+ release :
5+ types : [published]
6+
7+ jobs :
8+ build-and-publish :
9+ name : Build & Publish
10+
11+ runs-on : ubuntu-latest
12+
13+ permissions :
14+ contents : read
15+ id-token : write
16+
17+ steps :
18+ - name : Checkout repository
19+ uses : actions/checkout@v4
20+
21+ - name : Setup NodeJS
22+ uses : actions/setup-node@v4
23+ with :
24+ registry-url : " https://registry.npmjs.org"
25+
26+ - name : Setup pnpm
27+ uses : pnpm/action-setup@v4
28+
29+ - name : Install dependencies
30+ run : pnpm i --frozen-lockfile
31+
32+ - name : Build packages
33+ run : pnpm -r build
34+
35+ - name : Publish package '@forward-software/reveal.js-caffeine'
36+ if : contains(github.event.release.name, 'reveal.js-caffeine')
37+ run : npm publish --provenance --access public
38+ working-directory : plugins/caffeine
39+ env :
40+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
You can’t perform that action at this time.
0 commit comments