Skip to content

Commit 80eafdb

Browse files
authored
feat: npm auth (#46)
1 parent 0e72e68 commit 80eafdb

2 files changed

Lines changed: 7 additions & 11 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ on:
1212
env:
1313
PRIMARY_NODE_VERSION: 24.x
1414
PRIMARY_OS: ubuntu-latest
15-
REGISTRY: https://registry.npmjs.org/
1615

1716
jobs:
1817
test:

.github/workflows/publish.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ permissions:
99
contents: read # Allows checking out the repository contents
1010

1111
env:
12+
NODE_VERSION: 24.x
1213
REGISTRY: https://registry.npmjs.org/
1314

1415
jobs:
@@ -20,9 +21,6 @@ jobs:
2021
publish_version:
2122
name: Publish to NPM
2223
runs-on: ubuntu-latest
23-
strategy:
24-
matrix:
25-
node-version: [ 24.x ]
2624
needs: [ test ]
2725
steps:
2826

@@ -33,10 +31,10 @@ jobs:
3331
run: |
3432
git fetch --prune --unshallow
3533
36-
- name: Use Node.js ${{ matrix.node-version }}
34+
- name: Use Node.js ${{ env.NODE_VERSION }}
3735
uses: actions/setup-node@v6
3836
with:
39-
node-version: ${{ matrix.node-version }}
37+
node-version: ${{ env.NODE_VERSION }}
4038
registry-url: ${{ env.REGISTRY }}
4139

4240
- name: Get yarn cache directory
@@ -48,16 +46,15 @@ jobs:
4846
id: yarn-cache
4947
with:
5048
path: ${{ steps.yarn-cache-dir.outputs.dir }}
51-
key: ubuntu-latest-${{ matrix.node-version }}-yarn-${{ hashFiles('**/yarn.lock') }}
49+
key: ubuntu-latest-${{ env.NODE_VERSION }}-yarn-${{ hashFiles('**/yarn.lock') }}
5250
restore-keys: |
53-
ubuntu-latest-${{ matrix.node-version }}-yarn-
51+
ubuntu-latest-${{ env.NODE_VERSION }}-yarn-
5452
5553
- name: Install dependencies and build
5654
run: |
5755
yarn install --ignore-engines
5856
yarn build
5957
60-
- name: Install dependencies and build
58+
- name: Publish
6159
run: |
62-
yarn install --ignore-engines
63-
yarn publish
60+
npm publish

0 commit comments

Comments
 (0)