Skip to content
This repository was archived by the owner on Aug 16, 2025. It is now read-only.

Commit c468f51

Browse files
committed
put me out of my misery already please
1 parent dd492b7 commit c468f51

File tree

2 files changed

+24
-16
lines changed

2 files changed

+24
-16
lines changed

.github/workflows/release.yml

Lines changed: 21 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,34 @@
1-
name: Release
1+
name: Publish to GitHub Package Registry
22

33
on:
44
push:
55

66
jobs:
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 }}

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
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"

0 commit comments

Comments
 (0)