Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade actions to node 20 #652

Merged
merged 5 commits into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
runs-on: ubuntu-latest
if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Get Token
id: get_workflow_token
uses: peter-murray/workflow-application-token-action@v2
Expand Down
42 changes: 22 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ jobs:
needs: publish-github-release
steps:
- name: Clone
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand Down Expand Up @@ -93,11 +93,12 @@ jobs:
needs: publish-binary-npm-packages
steps:
- name: Clone
uses: actions/checkout@v3
- uses: actions/download-artifact@v3
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: release-checksums
path: wrappers/node/checksums
pattern: release-checksums-*
merge-multiple: true

- name: Get Version
run: echo GIT_VERSION="$(git describe --tags | sed 's/^v\(.*\)$/\1/')" >> $GITHUB_ENV
Expand Down Expand Up @@ -173,10 +174,10 @@ jobs:
cpu: arm64
steps:
- name: Clone
uses: actions/checkout@v3
- uses: actions/download-artifact@v3
uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: release
name: release-${{ matrix.target }}
path: build-artifacts

- name: Get Version
Expand Down Expand Up @@ -222,12 +223,12 @@ jobs:
application_private_key: ${{ secrets.CC_OSS_BOT_PEM }}

- name: Clone
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ steps.get_workflow_token.outputs.token }}

- name: Swap to main
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: main
fetch-depth: 0 # Full fetch
Expand All @@ -238,10 +239,11 @@ jobs:
- name: Get Tag
run: echo GIT_TAG="$(node ./.backstage/get_tag.cjs)" >> $GITHUB_ENV

- uses: actions/download-artifact@v3
- uses: actions/download-artifact@v4
with:
name: release
path: build-artifacts
pattern: release-*
merge-multiple: true

- name: Build CHANGELOG
if: env.GIT_TAG == 'latest'
Expand Down Expand Up @@ -352,12 +354,12 @@ jobs:
run_tests: false
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand All @@ -366,9 +368,9 @@ jobs:
target
key: ${{ runner.os }}-${{ matrix.rust }}

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

# From https://github.com/Emoun/duplicate/blob/master/.github/workflows/rust.yml
- name: Get Version
Expand Down Expand Up @@ -554,18 +556,18 @@ jobs:
echo "EXTENDED_CHECKSUM_PATH=$CHECKSUM_PATH" >> $GITHUB_ENV

- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: release
name: release-${{ matrix.target }}
path: |
${{ env.ASSET_PATH }}
${{ env.CHECKSUM_PATH }}
${{ env.EXTENDED_ASSET_PATH }}
${{ env.EXTENDED_CHECKSUM_PATH }}
- name: Upload build artifacts
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
name: release-checksums
name: release-checksums-${{ matrix.target }}
path: |
${{ env.CHECKSUM_PATH }}
${{ env.EXTENDED_CHECKSUM_PATH }}
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ jobs:
cross: false
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 1

- name: Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
Expand All @@ -52,9 +52,9 @@ jobs:
target
key: ${{ runner.os }}-${{ matrix.rust }}-min165

- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand Down
Loading
Loading