Skip to content

Commit

Permalink
chore: update workflows config.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Jun 20, 2023
1 parent 9ffe19b commit e7ebf88
Show file tree
Hide file tree
Showing 3 changed files with 66 additions and 1,372 deletions.
66 changes: 33 additions & 33 deletions .github/workflows/cci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,40 +43,40 @@ jobs:
icons/cci/src/**/*
icons/cci/svg/**/*
github-package:
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max_old_space_size=8192
needs: build-npm
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com
scope: '@jaywcjlove'
# github-package:
# runs-on: ubuntu-latest
# env:
# NODE_OPTIONS: --max_old_space_size=8192
# needs: build-npm
# steps:
# - uses: actions/checkout@v3
# with:
# submodules: true
# - uses: actions/setup-node@v3
# with:
# node-version: 16
# registry-url: https://npm.pkg.github.com
# scope: '@jaywcjlove'

- uses: actions/download-artifact@v3
with:
name: cci-artifact
path: icons/cci/
# - uses: actions/download-artifact@v3
# with:
# name: cci-artifact
# path: icons/cci/

- name: Display structure of downloaded files
run: ls -R
working-directory: icons/cci/
# - name: Display structure of downloaded files
# run: ls -R
# working-directory: icons/cci/

- name: "Modify @icongo/cci => @jaywcjlove/icongo-cci"
uses: jaywcjlove/github-action-package@main
continue-on-error: true
with:
path: icons/cci/package.json
rename: '@jaywcjlove/icongo-cci'
# - name: "Modify @icongo/cci => @jaywcjlove/icongo-cci"
# uses: jaywcjlove/github-action-package@main
# continue-on-error: true
# with:
# path: icons/cci/package.json
# rename: '@jaywcjlove/icongo-cci'

- run: npm publish
working-directory: icons/cci
name: 📦 @jaywcjlove/icongo-cci publish to NPM
continue-on-error: true
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
# - run: npm publish
# working-directory: icons/cci
# name: 📦 @jaywcjlove/icongo-cci publish to NPM
# continue-on-error: true
# env:
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
Loading

0 comments on commit e7ebf88

Please sign in to comment.