Skip to content

Commit ab70b01

Browse files
committed
feat(workflows): refactor to trusted publishing
1 parent 929e612 commit ab70b01

1 file changed

Lines changed: 3 additions & 15 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 3 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,6 @@ jobs:
2121
uses: actions/setup-node@v4
2222
with:
2323
node-version: 20
24-
registry-url: https://registry.npmjs.org
25-
26-
- name: Enable Corepack
27-
run: corepack enable
28-
29-
- name: Install dependencies
30-
run: yarn install --immutable
31-
32-
- name: Build package
33-
run: yarn build
34-
35-
- name: Publish package
36-
run: npm publish --access public --provenance
37-
env:
38-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
- run: npm ci
25+
- run: npm run build --if-present
26+
- run: npm publish

0 commit comments

Comments
 (0)