Skip to content

Commit 40886c7

Browse files
authored
Reuse workflow for publishing (#112)
1 parent 73adb70 commit 40886c7

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

.github/workflows/publish.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,6 @@ on:
1919
tags: ["v*"]
2020
jobs:
2121
build:
22-
runs-on: ubuntu-24.04
23-
steps:
24-
- uses: actions/checkout@v4
25-
# Setup .npmrc file to publish to npm
26-
- uses: actions/setup-node@v4
27-
with:
28-
node-version: "22.x"
29-
registry-url: "https://registry.npmjs.org"
30-
- run: npm ci
31-
- run: npm publish
32-
env:
33-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22+
uses: 8hobbies/workflows/.github/workflows/npm-publish.yml@e7fd4a1cebbdddd1747928b36f24fcba81436050
23+
secrets:
24+
npm-auth-token: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)