Skip to content

Commit

Permalink
Update CI/CD
Browse files Browse the repository at this point in the history
  • Loading branch information
evanplaice committed Jul 20, 2024
1 parent 796d73c commit 8e64fd6
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
10 changes: 1 addition & 9 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,6 @@ jobs:
npm publish --access public
# runs-on: ubuntu-latest
# permissions:
# contents: read
# id-token: write
# steps:
# - name: Checkout
# uses: actions/checkout@v4
Expand All @@ -27,12 +24,7 @@ jobs:
# registry-url: "https://registry.npmjs.org"
# cache: npm
# - run: npm ci
# - run: cat /home/runner/work/_temp/.npmrc
# - name: Publish
# run: |
# # Change publish registry
# echo "$(jq '.publishConfig.registry = "https://registry.npmjs.org"' package.json)" > package.json
# # Publish package
# npm publish --provenance --access public
# run: npm publish --provenance --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
16 changes: 15 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,19 @@ jobs:

cd:
needs: ci
uses: evanplaice/jquery-csv/.github/workflows/npm.yml@main
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup
uses: actions/setup-node@v4
with:
registry-url: "https://registry.npmjs.org"
cache: npm
- run: npm ci
- name: Publish
run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}
# uses: evanplaice/jquery-csv/.github/workflows/npm.yml@main

0 comments on commit 8e64fd6

Please sign in to comment.