Skip to content

Commit aeb1b12

Browse files
committed
chore: add publish workflow
1 parent f7ba1c0 commit aeb1b12

File tree

2 files changed

+20
-17
lines changed

2 files changed

+20
-17
lines changed

.github/workflows/publish.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
on:
2+
release:
3+
types:
4+
- released
5+
6+
name: Publish to NPM
7+
8+
jobs:
9+
publish:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v4
13+
- uses: actions/setup-node@v4
14+
with:
15+
node-version: 22
16+
registry-url: "https://registry.npmjs.org"
17+
- run: npm ci
18+
- run: npm publish
19+
env:
20+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/release.yml

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -18,20 +18,3 @@ jobs:
1818
token: ${{ secrets.GITHUB_TOKEN }}
1919
release-type: node
2020
package-name: tailwindcss-classnames
21-
22-
- uses: actions/checkout@v4
23-
if: ${{ steps.release.outputs.release_created }}
24-
25-
- uses: actions/setup-node@v4
26-
with:
27-
node-version: 14
28-
registry-url: "https://registry.npmjs.org"
29-
if: ${{ steps.release.outputs.release_created }}
30-
31-
- run: npm ci
32-
if: ${{ steps.release.outputs.release_created }}
33-
34-
- run: npm publish
35-
env:
36-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
37-
if: ${{ steps.release.outputs.release_created }}

0 commit comments

Comments
 (0)