Skip to content

Commit 470aea8

Browse files
committed
chore: Update npm publish command to remove registry URL
1 parent daf3143 commit 470aea8

2 files changed

Lines changed: 16 additions & 34 deletions

File tree

.github/workflows/publish.yml

Lines changed: 15 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,37 +1,19 @@
11
name: Publish to npm and create GitHub Release
22

33
on:
4-
push:
5-
paths:
6-
- 'package.json'
7-
branches:
8-
- master
9-
4+
push:
5+
branches: master
6+
107
jobs:
11-
publish:
12-
runs-on: ubuntu-latest
13-
14-
steps:
15-
- name: Checkout repository
16-
uses: actions/checkout@v3
17-
with:
18-
fetch-depth: 0 # Fetch all history for all branches and tags
19-
20-
- name: Set up Node.js
21-
uses: actions/setup-node@v3
22-
with:
23-
node-version: '20'
24-
25-
- name: Install dependencies
26-
run: npm install
27-
28-
- name: Run build script
29-
run: npm run build
30-
31-
- name: Configure npm for publishing
32-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
33-
34-
- name: Publish to npm
35-
env:
36-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
37-
run: npm publish --access public
8+
publish:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v4
12+
- uses: actions/setup-node@v3
13+
with:
14+
node-version: "20"
15+
- run: npm ci
16+
- run: npm test
17+
- uses: JS-DevTools/npm-publish@v3
18+
with:
19+
token: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "modulatecss",
3-
"version": "1.0.17",
3+
"version": "1.0.18",
44
"publishConfig": {
55
"registry": "https://npm.pkg.github.com"
66
},

0 commit comments

Comments
 (0)