File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 12
12
contents : write
13
13
id-token : write
14
14
15
-
16
15
steps :
17
16
- name : Checkout repository
18
17
uses : actions/checkout@v3
@@ -30,11 +29,27 @@ jobs:
30
29
- name : Install dependencies
31
30
run : npm install
32
31
32
+ - name : Debug NPM_TOKEN
33
+ run : echo "Checking if NPM_TOKEN is set" && [ -n "$NODE_AUTH_TOKEN" ] && echo "NPM_TOKEN is set" || echo "NPM_TOKEN is missing"
34
+ env :
35
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
36
+
37
+ - name : Create .npmrc file
38
+ run : echo "//registry.npmjs.org/:_authToken=${NODE_AUTH_TOKEN}" > ~/.npmrc
39
+ env :
40
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
41
+
42
+ - name : Test NPM Authentication
43
+ env :
44
+ NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
45
+ run : npm whoami
46
+
33
47
- name : Build the package
34
48
run : npm run build
35
49
36
50
- name : Run Semantic Release
37
51
env :
38
52
GITHUB_TOKEN : ${{ secrets.GH_PAT }}
39
53
NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
54
+ DEBUG : " semantic-release:*"
40
55
run : npx semantic-release
You can’t perform that action at this time.
0 commit comments