Skip to content

Commit 8e64fd6

Browse files
committed
Update CI/CD
1 parent 796d73c commit 8e64fd6

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

.github/workflows/npm.yml

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ jobs:
1515
npm publish --access public
1616
1717
# runs-on: ubuntu-latest
18-
# permissions:
19-
# contents: read
20-
# id-token: write
2118
# steps:
2219
# - name: Checkout
2320
# uses: actions/checkout@v4
@@ -27,12 +24,7 @@ jobs:
2724
# registry-url: "https://registry.npmjs.org"
2825
# cache: npm
2926
# - run: npm ci
30-
# - run: cat /home/runner/work/_temp/.npmrc
3127
# - name: Publish
32-
# run: |
33-
# # Change publish registry
34-
# echo "$(jq '.publishConfig.registry = "https://registry.npmjs.org"' package.json)" > package.json
35-
# # Publish package
36-
# npm publish --provenance --access public
28+
# run: npm publish --provenance --access public
3729
# env:
3830
# NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

.github/workflows/release.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,5 +11,19 @@ jobs:
1111

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

0 commit comments

Comments
 (0)