This repository was archived by the owner on Aug 16, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +24
-16
lines changed
Expand file tree Collapse file tree 2 files changed +24
-16
lines changed Original file line number Diff line number Diff line change 1- name : Release
1+ name : Publish to GitHub Package Registry
22
33on :
44 push :
55
66jobs :
77 publish :
88 runs-on : ubuntu-22.04
9- strategy :
10- matrix :
11- node-version : [22]
129
1310 steps :
14- - uses : actions/checkout@v4
15- - name : Install pnpm
16- uses : pnpm/action-setup@v4
17- with :
18- version : 9
19- - name : Use Node.js ${{ matrix.node-version }}
11+ - name : Checkout code
12+ uses : actions/checkout@v4
13+
14+ - name : Install pnpm
15+ uses : pnpm/action-setup@v4
16+ with :
17+ version : 9
18+
19+ - name : Setup Node.js
2020 uses : actions/setup-node@v4
2121 with :
22- node-version : ${{ matrix.node-version }}
23- cache : ' pnpm '
22+ node-version : 22
23+ registry-url : https://npm.pkg.github.com/
2424
25- - name : Release
26- env :
27- GITHUB_TOKEN : ${{ secrets.GH_TOKEN }}
28- NPM_TOKEN : ${{ secrets.NPM_TOKEN }}
25+ - name : Authenticate with GitHub Package Registry
26+ run : echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
27+
28+ - name : Install dependencies
29+ run : pnpm install
30+
31+ - name : Publish package
2932 run : pnpm publish
33+ env :
34+ NPM_TOKEN : ${{secrets.NPM_TOKEN }}
Original file line number Diff line number Diff line change 55 "keywords" : [
66 " depsiar"
77 ],
8+ "publishConfig" : {
9+ "registry" : " https://npm.pkg.github.com"
10+ },
811 "repository" : {
912 "type" : " git" ,
1013 "url" : " https://git.astrohweston.xyz/Astropulent/npm-testing.git"
You can’t perform that action at this time.
0 commit comments