Skip to content

Commit

Permalink
chore: update actions to v4 node v20 versions (ionic-team#7237)
Browse files Browse the repository at this point in the history
  • Loading branch information
markemer committed Feb 9, 2024
1 parent 807fea2 commit a989c4d
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 43 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/capacitor-bot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
name: ${{ github.event_name }}/${{ github.event.action }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: ionic-team/bot@main
with:
repo-token: ${{ secrets.BOT_TOKEN }}
Expand Down
38 changes: 19 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,29 +21,29 @@ jobs:
timeout-minutes: 30
steps:
- name: Get Latest
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 18.x
- name: NPM ^9.5.0
run: npm i -g npm@^9.5.0 --registry=https://registry.npmjs.org
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Restore Dependency Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-dependencies-cache-${{ hashFiles('**/package.json') }}
lint:
runs-on: macos-13
timeout-minutes: 30
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: NPM ^9.5.0
run: npm i -g npm@^9.5.0 --registry=https://registry.npmjs.org
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Restore Dependency Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-dependencies-cache-${{ hashFiles('**/package.json') }}
Expand All @@ -56,14 +56,14 @@ jobs:
- setup
- lint
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: NPM ^9.5.0
run: npm i -g npm@^9.5.0 --registry=https://registry.npmjs.org
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Restore Dependency Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-dependencies-cache-${{ hashFiles('**/package.json') }}
Expand All @@ -79,14 +79,14 @@ jobs:
- setup
- lint
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: NPM ^9.5.0
run: npm i -g npm@^9.5.0 --registry=https://registry.npmjs.org
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Restore Dependency Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-dependencies-cache-${{ hashFiles('**/package.json') }}
Expand All @@ -107,14 +107,14 @@ jobs:
- /Applications/Xcode_15.0.1.app
steps:
- run: sudo xcode-select --switch ${{ matrix.xcode }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: NPM ^9.5.0
run: npm i -g npm@^9.5.0 --registry=https://registry.npmjs.org
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Restore Dependency Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-dependencies-cache-${{ hashFiles('**/package.json') }}
Expand All @@ -130,19 +130,19 @@ jobs:
- setup
- lint
steps:
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
- name: set up JDK 17
uses: actions/setup-java@v3
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'
- name: NPM ^9.5.0
run: npm i -g npm@^9.5.0 --registry=https://registry.npmjs.org
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Restore Dependency Cache
uses: actions/cache@v3
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-dependencies-cache-${{ hashFiles('**/package.json') }}
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-npm-alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: macos-13
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
Expand All @@ -24,7 +24,7 @@ jobs:
- run: |
npm install
- name: Version & Publish
env:
env:
GH_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-npm-beta.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: macos-13
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
Expand All @@ -24,7 +24,7 @@ jobs:
- run: |
npm install
- name: Version & Publish
env:
env:
GH_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-npm-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: macos-13
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
Expand All @@ -25,7 +25,7 @@ jobs:
run: |
npm install
- name: Version & Publish
env:
env:
GH_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-npm-latest-from-pre.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Publish NPM Latest From Prerelease

on:
on:
workflow_call:
secrets:
CAP_GH_RELEASE_TOKEN:
Expand All @@ -19,11 +19,11 @@ jobs:
runs-on: macos-13
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
Expand All @@ -32,7 +32,7 @@ jobs:
- run: |
npm install
- name: Version & Publish
env:
env:
GH_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/publish-npm-latest.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: Publish NPM Latest

on:
on:
workflow_call:
secrets:
CAP_GH_RELEASE_TOKEN:
Expand All @@ -19,11 +19,11 @@ jobs:
runs-on: macos-13
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
Expand All @@ -32,7 +32,7 @@ jobs:
- run: |
npm install
- name: Version & Publish
env:
env:
GH_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-npm-nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ jobs:
runs-on: macos-13
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
Expand All @@ -27,7 +27,7 @@ jobs:
- run: |
npm install
- name: Version & Publish
env:
env:
GH_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/publish-npm-rc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: macos-13
timeout-minutes: 30
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
- uses: actions/setup-node@v3
- uses: actions/setup-node@v4
with:
node-version: 18
registry-url: https://registry.npmjs.org/
Expand All @@ -24,7 +24,7 @@ jobs:
- run: |
npm install
- name: Version & Publish
env:
env:
GH_TOKEN: ${{ secrets.CAP_GH_RELEASE_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
Expand Down

0 comments on commit a989c4d

Please sign in to comment.