Skip to content

Commit

Permalink
ci: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Nov 27, 2023
1 parent e84a0d8 commit 2fcd61d
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,30 +95,30 @@ jobs:
outputs:
successful: ${{steps.create_tag.outputs.successful }}

github-package:
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
needs: build-deploy
if: needs.build-deploy.outputs.successful
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://npm.pkg.github.com
scope: '@jaywcjlove'
# github-package:
# runs-on: ubuntu-latest
# permissions:
# contents: write
# id-token: write
# needs: build-deploy
# if: needs.build-deploy.outputs.successful
# steps:
# - uses: actions/checkout@v3
# - uses: actions/setup-node@v3
# with:
# node-version: 18
# registry-url: https://npm.pkg.github.com
# scope: '@jaywcjlove'

- run: npm install
- run: npm run build
# - run: npm install
# - run: npm run build

- name: Modify @wcj/date => @jaywcjlove/date
uses: jaywcjlove/github-action-package@main
with:
rename: '@jaywcjlove/date'
# - name: Modify @wcj/date => @jaywcjlove/date
# uses: jaywcjlove/github-action-package@main
# with:
# rename: '@jaywcjlove/date'

- run: npm publish --access public --provenance
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# - run: npm publish --access public --provenance
# continue-on-error: true
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 2fcd61d

Please sign in to comment.