Commit 7b091a4
committed
chore: update npm publishing to use OIDC authentication
This updates the CI workflow to use OIDC authentication for npm publishing instead of static tokens. This is more secure and follows GitHub's recommended practices.
Changes:
- Added 'permissions: id-token: write' to publish job
- Removed NPM_TOKEN from environment variables
- Removed npm config set command that configured static token authentication
- Updated npm publish commands to use npx -y npm@latest publish wrapped in a publish() function
- Removed the env block containing NPM_TOKEN secret1 parent dd4559b commit 7b091a4
1 file changed
+9
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| |||
45 | 47 | | |
46 | 48 | | |
47 | 49 | | |
48 | | - | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
49 | 53 | | |
50 | | - | |
| 54 | + | |
51 | 55 | | |
52 | | - | |
| 56 | + | |
53 | 57 | | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
| 58 | + | |
| 59 | + | |
0 commit comments