@ezhang6811/npm-publish-test 1.0.0 → 1.0.1

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,21 +2,30 @@ name: Test NPM Publish
2
2
  on:
3
3
  workflow_dispatch:
4
4
 
5
+ permissions:
6
+ id-token: write
7
+ contents: read
8
+
5
9
  jobs:
6
10
  publish:
7
11
  runs-on: ubuntu-latest
8
- permissions:
9
- id-token: write
10
- contents: read
11
12
  steps:
12
13
  - uses: actions/checkout@v4
13
14
  - uses: actions/setup-node@v4
14
15
  with:
15
- node-version: '18'
16
+ node-version: '22'
16
17
  registry-url: 'https://registry.npmjs.org'
17
18
 
19
+ - name: Check npm version
20
+ run: npm --version
21
+
22
+ - name: Upgrade npm
23
+ run: npm install -g npm@latest
24
+
25
+ - name: Check npm version after upgrade
26
+ run: npm --version
27
+
18
28
  - name: Test publish
19
29
  env:
20
- NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
21
30
  NPM_CONFIG_PROVENANCE: true
22
31
  run: npm publish
package/package.json CHANGED
@@ -1,12 +1,9 @@
1
1
  {
2
2
  "name": "@ezhang6811/npm-publish-test",
3
- "version": "1.0.0",
3
+ "version": "1.0.1",
4
4
  "description": "test publishing to npm with OIDC auth",
5
5
  "main": "index.js",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/ezhang6811/npm-publish-test.git"
9
- },
6
+ "repository": "ezhang6811/npm-publish-test",
10
7
  "scripts": {
11
8
  "test": "node index.js"
12
9
  },