Skip to content

Commit 9faa4cb

Browse files
committed
Update CI/CD
1 parent 8a2ae8f commit 9faa4cb

2 files changed

Lines changed: 15 additions & 37 deletions

File tree

.github/workflows/npm.yml

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,19 @@ on:
66
jobs:
77
npm:
88
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
id-token: write
912
steps:
1013
- name: Checkout
11-
uses: actions/checkout@master
14+
uses: actions/checkout@v4
15+
- name: Setup
16+
uses: actions/setup-node@v4
17+
with:
18+
registry-url: "https://registry.npmjs.org"
19+
cache: npm
20+
- run: npm ci
1221
- name: Publish
13-
run: |
14-
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_AUTH_TOKEN }}" > ~/.npmrc
15-
npm publish --access public
16-
17-
# runs-on: ubuntu-latest
18-
# steps:
19-
# - name: Checkout
20-
# uses: actions/checkout@v4
21-
# - name: Setup
22-
# uses: actions/setup-node@v4
23-
# with:
24-
# registry-url: "https://registry.npmjs.org"
25-
# cache: npm
26-
# - run: npm ci
27-
# - name: Publish
28-
# run: npm publish --provenance --access public
29-
# env:
30-
# NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
22+
run: npm publish --provenance --access public
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.github/workflows/release.yml

Lines changed: 2 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,6 @@ jobs:
1111

1212
cd:
1313
needs: ci
14-
runs-on: ubuntu-latest
15-
permissions:
16-
contents: read
17-
id-token: write
18-
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v4
21-
- name: Setup
22-
uses: actions/setup-node@v4
23-
with:
24-
registry-url: "https://registry.npmjs.org"
25-
cache: npm
26-
- run: npm ci
27-
- name: Publish
28-
run: npm publish --provenance --access public
29-
env:
30-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
31-
# uses: evanplaice/jquery-csv/.github/workflows/npm.yml@main
14+
uses: evanplaice/jquery-csv/.github/workflows/npm.yml@main
15+
secrets: inherit
3216

0 commit comments

Comments
 (0)