This repository was archived by the owner on Jan 11, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +20
-22
lines changed Expand file tree Collapse file tree 2 files changed +20
-22
lines changed Original file line number Diff line number Diff line change 1- name : Node.js Package
1+ name : Publish NPM Package
22
33on :
44 push :
5- # types: [created]
5+ # branches:
6+ # - main
67
78jobs :
8- build :
9+ publish :
910 runs-on : ubuntu-latest
10- steps :
11- - uses : actions/checkout@v4
12- - uses : actions/setup-node@v3
13- with :
14- node-version : 20.5.1
15- - run : npm ci
1611
17- publish-gpr :
18- needs : build
19- runs-on : ubuntu-latest
20- permissions :
21- packages : write
22- contents : read
2312 steps :
24- - uses : actions/checkout@v4
25- - uses : actions/setup-node@v3
13+ - name : Checkout Repository
14+ uses : actions/checkout@v2
15+
16+ - name : Set up Node.js
17+ uses : actions/setup-node@v2
2618 with :
2719 node-version : 20.5.1
28- registry-url : https://npm.pkg.github.com/
29- - run : npm ci
30- - run : npm publish --access=public
20+
21+ - name : Install Dependencies
22+ run : npm install
23+
24+ # - name: Build Package
25+ # run: npm run build
26+
27+ - name : Publish to NPM
28+ run : |
29+ npm publish --access public
3130 env :
32- NODE_AUTH_TOKEN : ${{secrets.NPM_TOKEN}}
31+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments