Commit fb20a7e
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 for OIDC authentication
- Removed NPM_TOKEN from environment variables in publish job
- Removed 'npm config set //registry.npmjs.org/:_authToken ${NPM_TOKEN}' command
- Added publish() helper function that wraps 'npx -y npm@latest publish "$@"'
- Replaced direct 'npm publish' commands with 'publish' function calls1 parent 5f87245 commit fb20a7e
1 file changed
Lines changed: 9 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
| 39 | + | |
38 | 40 | | |
39 | 41 | | |
40 | 42 | | |
| |||
47 | 49 | | |
48 | 50 | | |
49 | 51 | | |
50 | | - | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
51 | 55 | | |
52 | | - | |
| 56 | + | |
53 | 57 | | |
54 | | - | |
| 58 | + | |
55 | 59 | | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
| 60 | + | |
| 61 | + | |
0 commit comments