Skip to content

Commit 53761a9

Browse files
committed
Changed to use npm-publish action and bumped version
1 parent 4322e01 commit 53761a9

File tree

2 files changed

+7
-11
lines changed

2 files changed

+7
-11
lines changed

.github/workflows/release-package.yml

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,19 +15,15 @@ jobs:
1515
- run: npm ci
1616
- run: npm test
1717

18-
publish-node:
19-
needs: build
18+
publish:
2019
runs-on: ubuntu-latest
21-
permissions:
22-
packages: write
23-
contents: read
2420
steps:
2521
- uses: actions/checkout@v4
2622
- uses: actions/setup-node@v3
2723
with:
28-
node-version: latest
29-
registry-url: https://registry.npmjs.org
24+
node-version: "20"
3025
- run: npm ci
31-
- run: npm publish
32-
env:
33-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
- run: npm test
27+
- uses: JS-DevTools/npm-publish@v3
28+
with:
29+
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": "@emamid/svelte-data-table",
3-
"version": "0.0.11",
3+
"version": "0.0.12",
44
"homepage": "https://github.com/emamid/svelte-data-table",
55
"scripts": {
66
"dev": "vite dev",

0 commit comments

Comments
 (0)