Skip to content

Commit

Permalink
update github actions workflow configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
cw1997 committed Dec 8, 2022
1 parent 9b1b3b2 commit 82ce4a9
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 26 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/reuse-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,21 @@ jobs:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3

- uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
with:
version: 6.23.6

- name: Set up Node.js v16
uses: actions/setup-node@v2
- name: Set up Node.js v18.12.0
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18.12.0
cache: pnpm

- name: Cache dependencies
id: dep-caches
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
node_modules
Expand Down Expand Up @@ -55,24 +55,24 @@ jobs:
run: tar -zcf ui-scripts-${{ inputs.build-env }}.tar packages/ui-scripts/dist

- name: Upload ui artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ui
path: ui.tar
if-no-files-found: error
if: ${{ inputs.build-env == 'production' }}

- name: Upload site-components artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: site-components
path: site-components.tar
if-no-files-found: error
if: ${{ inputs.build-env == 'production' }}

- name: Upload ui-scripts artifact
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v3
with:
name: ui-scripts-${{ inputs.build-env }}
path: ui-scripts-${{ inputs.build-env }}.tar
if-no-files-found: error
if-no-files-found: error
8 changes: 4 additions & 4 deletions .github/workflows/reuse-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,21 @@ jobs:
environment: ${{ inputs.build-env }}

steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3

- uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
with:
version: 6.23.6

- name: Set up Node.js v16
- name: Set up Node.js 18.12.0
uses: actions/setup-node@v2
with:
node-version: 16
node-version: 18.12.0
cache: pnpm

- name: Resolve prod dependencies
id: prod-dep-caches
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
node_modules
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/reuse-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ jobs:
environment: ${{ inputs.build-env }}

steps:
- uses: actions/checkout@v2.4.0
- uses: actions/checkout@v3
with:
token: ${{ secrets.PUBLISH_TOKEN }}

- uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
with:
version: 6.23.6
version: 7.14.0

- name: Set up Node.js v16
uses: actions/setup-node@v2
- name: Set up Node.js 18.12.0
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18.12.0
cache: pnpm

- name: Resolve prod dependencies
id: prod-dep-caches
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
node_modules
Expand Down
14 changes: 7 additions & 7 deletions .github/workflows/reuse-verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,21 +11,21 @@ jobs:
packages: read
steps:
- name: Checkout repository
uses: actions/checkout@v2
uses: actions/checkout@v3

- uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2
- uses: pnpm/action-setup@v2
with:
version: 6.23.6
version: 7.14.0

- name: Set up Node.js v16
uses: actions/setup-node@v2
- name: Set up Node.js 18.12.0
uses: actions/setup-node@v3
with:
node-version: 16
node-version: 18.12.0
cache: pnpm

- name: Resolve build dependencies
id: dep-caches
uses: actions/cache@v2
uses: actions/cache@v3
with:
path: |
node_modules
Expand Down

0 comments on commit 82ce4a9

Please sign in to comment.