Skip to content

Commit

Permalink
chore: bump all workflow actions to latest versions (#250)
Browse files Browse the repository at this point in the history
* chore: bump all workflow actions to latest versions

* refactor: replace outdated node16 action with `gh release upload` command
  • Loading branch information
byCedric authored Mar 8, 2024
1 parent 6c789b8 commit 5a4bf25
Show file tree
Hide file tree
Showing 7 changed files with 28 additions and 31 deletions.
6 changes: 3 additions & 3 deletions .github/actions/setup-project/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: Prepare the project for any CI action
inputs:
node-version:
description: Version of Node to install
default: 18.x
default: 20.x

with-fixture:
description: If the setup should install the test/fixture files
Expand All @@ -19,7 +19,7 @@ runs:
steps:
- name: 🏗 Setup Node with cache
if: ${{ inputs.without-cache != 'true' }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}
cache: npm
Expand All @@ -29,7 +29,7 @@ runs:
- name: 🏗 Setup Node without cache
if: ${{ inputs.without-cache == 'true' }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ inputs.node-version }}

Expand Down
11 changes: 4 additions & 7 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
contents: write
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🏗 Setup project
uses: ./.github/actions/setup-project
Expand All @@ -22,16 +22,13 @@ jobs:
VSCODE_EXPO_TELEMETRY_KEY: ${{ secrets.VSCODE_TELEMETRY_KEY }}

- name: 📋 Add package to release
uses: softprops/action-gh-release@v1
with:
files: vscode-expo-*.vsix
tag_name: ${{ github.ref_name }}
run: gh release upload ${{ github.ref_name }} vscode-expo-${{ github.ref_name }}.vsix

vscode-marketplace:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo from tag
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🏗 Setup project
uses: ./.github/actions/setup-project
Expand All @@ -54,7 +51,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo from tag
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🏗 Setup project
uses: ./.github/actions/setup-project
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ jobs:
pull-requests: read
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🏗 Setup project
uses: ./.github/actions/setup-project
Expand All @@ -38,7 +38,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{ secrets.EXPOBOT_GITHUB_TOKEN }}

Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/schema-eas.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🏗 Setup project
uses: ./.github/actions/setup-project

- name: 🌐 Resolve version
id: version
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const inputVersion = "${{ github.event.inputs.version || 'latest' }}";
Expand All @@ -54,7 +54,7 @@ jobs:
curl https://raw.githubusercontent.com/expo/eas-cli/v${{ steps.version.outputs.resolved }}/packages/eas-json/schema/eas.schema.json -o ./schema/eas.json
- name: 📋 Upload schema
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: schema-eas
Expand All @@ -66,13 +66,13 @@ jobs:
needs: generate
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: schemas
token: ${{ secrets.EXPOBOT_GITHUB_TOKEN }}

- name: 📋 Download schema
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: schema-eas
path: ./schema/
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/schema-metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🏗 Setup project
uses: ./.github/actions/setup-project

- name: 🌐 Resolve version
id: version
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const inputVersion = "${{ github.event.inputs.version || 'latest' }}";
Expand All @@ -54,7 +54,7 @@ jobs:
curl https://raw.githubusercontent.com/expo/eas-cli/v${{ steps.version.outputs.resolved }}/packages/eas-cli/schema/metadata-0.json -o ./schema/eas-metadata.json
- name: 📋 Upload schema
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: schema-metadata
Expand All @@ -66,13 +66,13 @@ jobs:
needs: generate
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: schemas
token: ${{ secrets.EXPOBOT_GITHUB_TOKEN }}

- name: 📋 Download schema
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: schema-metadata
path: ./schema/
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/schema-xdl.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🏗 Setup project
uses: ./.github/actions/setup-project
Expand All @@ -42,7 +42,7 @@ jobs:
run: node ./scripts/schema-expo-xdl.js --latest

- name: 📋 Upload schema
uses: actions/upload-artifact@v3
uses: actions/upload-artifact@v4
with:
if-no-files-found: error
name: schema-xdl
Expand All @@ -54,13 +54,13 @@ jobs:
needs: generate
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: schemas
token: ${{ secrets.EXPOBOT_GITHUB_TOKEN }}

- name: 📋 Download schema
uses: actions/download-artifact@v3
uses: actions/download-artifact@v4
with:
name: schema-xdl
path: ./schema/
Expand Down
10 changes: 5 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🏗 Setup project
uses: ./.github/actions/setup-project
Expand All @@ -28,7 +28,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🏗 Setup project
uses: ./.github/actions/setup-project
Expand All @@ -43,7 +43,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🏗 Setup project
uses: ./.github/actions/setup-project
Expand Down Expand Up @@ -79,7 +79,7 @@ jobs:
vscode: [oldest, stable]
steps:
- name: 🏗 Setup repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: 🏗 Setup project
uses: ./.github/actions/setup-project
Expand All @@ -91,7 +91,7 @@ jobs:

# This handles the "oldest" vscode version by looking up our "oldest supported version"
- name: 🕵️ Set vscode version
uses: actions/github-script@v6
uses: actions/github-script@v7
with:
script: |
const { engines } = require('./package.json')
Expand Down

0 comments on commit 5a4bf25

Please sign in to comment.