@coffeeonetest/core 1.0.0 → 1.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,22 +2,29 @@ name: Publish
2
2
 
3
3
  on:
4
4
  push:
5
- branches:
6
- - main
5
+ branches: [main]
7
6
 
8
7
  jobs:
9
8
  publish:
10
9
  runs-on: ubuntu-latest
10
+
11
+ permissions:
12
+ contents: read
13
+ id-token: write # обязательно для OIDC
14
+
11
15
  steps:
12
- - uses: actions/checkout@v4
13
- - uses: actions/setup-node@v4
16
+ - uses: actions/checkout@v3
17
+
18
+ - uses: actions/setup-node@v3
14
19
  with:
15
20
  node-version: 20
16
21
  registry-url: https://registry.npmjs.org/
17
- - run: npm whoami
18
- env:
19
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
20
- - run: npm publish --access public
21
- env:
22
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
22
+ # auth-token больше не нужен, OIDC будет использоваться автоматически
23
+ - name: Cleanup npm auth
24
+ run: |
25
+ unset NODE_AUTH_TOKEN
26
+ unset NPM_CONFIG_USERCONFIG
23
27
 
28
+ - name: Publish with OIDC
29
+ run: npm publish --provenance
30
+ env: { } # очищаем все переменные окружения для этого шага
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@coffeeonetest/core",
3
- "version": "1.0.0",
3
+ "version": "1.0.3",
4
4
  "description": "Core utils and shared setup",
5
5
  "type": "commonjs",
6
6
  "publishConfig": {
package/readme.md ADDED
@@ -0,0 +1 @@
1
+ coffeeonetest