Skip to content

Commit e047be8

Browse files
committed
fix npm auth
1 parent 3a7fbd4 commit e047be8

File tree

4 files changed

+20
-22
lines changed

4 files changed

+20
-22
lines changed

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: pre-commit
22

33
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
4+
workflow_dispatch:
85

96
jobs:
107
pre-commit:

.github/workflows/publish.yml

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -83,27 +83,17 @@ jobs:
8383
name: dist
8484
path: dist/
8585

86-
approve:
87-
name: Approval
88-
needs: [checks, build]
89-
runs-on: ubuntu-latest
90-
environment: npm-publish
91-
steps:
92-
- name: Approved
93-
run: echo "Publish approved"
94-
9586
publish:
9687
name: Publish
97-
needs: approve
88+
needs: build
9889
runs-on: ubuntu-latest
90+
environment: prod
9991
permissions:
10092
contents: read
10193
id-token: write
10294
steps:
10395
- name: Checkout code
10496
uses: actions/checkout@v5
105-
with:
106-
fetch-depth: 0
10797

10898
- name: Setup Bun
10999
uses: oven-sh/setup-bun@v2
@@ -116,7 +106,10 @@ jobs:
116106
name: dist
117107
path: dist/
118108

119-
- name: Publish
120-
run: bun publish --access public
109+
- name: Set up npm auth
110+
run: echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
121111
env:
122112
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
113+
114+
- name: Publish
115+
run: bun publish --access public

.github/workflows/tests.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
name: tests
22

33
on:
4-
push:
5-
branches: [main]
6-
pull_request:
7-
branches: [main]
4+
workflow_dispatch:
85

96
jobs:
107
tests:

package.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,17 @@
99
"files": [
1010
"dist"
1111
],
12+
"repository": {
13+
"type": "git",
14+
"url": "https://github.com/microdev1/vite-plugin-solid-undestructure.git"
15+
},
16+
"keywords": [
17+
"vite",
18+
"solidjs",
19+
"babel",
20+
"plugin"
21+
],
22+
"license": "MIT",
1223
"scripts": {
1324
"build": "bun build src --minify --packages=external --outfile=dist/index.js && tsc --declaration --emitDeclarationOnly --outDir dist",
1425
"type": "tsc --noEmit",

0 commit comments

Comments
 (0)