Skip to content

Commit 64cc8fe

Browse files
fix: recreate publish action correctly
1 parent 6370a6f commit 64cc8fe

File tree

3 files changed

+14
-22
lines changed

3 files changed

+14
-22
lines changed

.github/workflows/publish-package.yml

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,18 @@ on:
55
types: [created]
66

77
jobs:
8-
build:
8+
publish:
99
runs-on: ubuntu-latest
1010
steps:
1111
- uses: actions/checkout@v4
1212
- uses: actions/setup-node@v4
1313
with:
1414
node-version: 20.11.1
15+
registry-url: https://registry.npmjs.org/
1516
- run: npm ci
17+
- run: npm run lint:ci
1618
- run: npm test
1719
- run: npm run build
18-
19-
publish-npm:
20-
needs: build
21-
runs-on: ubuntu-latest
22-
steps:
23-
- uses: actions/checkout@v4
24-
- uses: actions/setup-node@v4
25-
with:
26-
node-version: 20.11.1
27-
registry-url: https://registry.npmjs.org/
28-
- run: npm ci
2920
- run: npm publish
3021
env:
3122
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

.npmignore

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
package-lock.json
2+
tsconfig*
3+
jest*
4+
.prettier*
5+
.nvmrc
6+
.markdownlint.json
7+
.editorconfig
8+
.eslint*
9+
.gitignore
10+
src/example-hello-world-app-test/

.npmrc

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1 @@
1-
package-lock.json
2-
tsconfig*
3-
jest*
4-
.prettier*
5-
.nvmrc
6-
.markdownlint.json
7-
.editorconfig
8-
.eslint*
9-
.gitignore
10-
src/example-hello-world-app-test/
1+

0 commit comments

Comments
 (0)