Skip to content

Commit 02f36e9

Browse files
committed
ci: Bump actions to latest.
1 parent d752cf0 commit 02f36e9

File tree

3 files changed

+19
-17
lines changed

3 files changed

+19
-17
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ jobs:
2626
- os: ubuntu-latest
2727
rid: android-arm64-v8a
2828
steps:
29-
- uses: actions/checkout@v3
30-
- uses: actions/setup-dotnet@v1
29+
- uses: actions/checkout@v4
30+
- uses: actions/setup-dotnet@v4
3131
with:
3232
dotnet-version: '3.1.x'
3333
- name: Build
@@ -41,7 +41,7 @@ jobs:
4141
- run: |
4242
mkdir tmp
4343
cp -r VisualPinball.Engine.PinMAME.Unity/Plugins/${{ matrix.rid }} tmp
44-
- uses: actions/upload-artifact@v3
44+
- uses: actions/upload-artifact@v4
4545
with:
4646
name: Plugins
4747
path: tmp
@@ -51,7 +51,7 @@ jobs:
5151
needs: [ build ]
5252
if: github.repository == 'VisualPinball/VisualPinball.Engine.PinMAME' && github.ref == 'refs/heads/master' && github.event_name == 'push'
5353
steps:
54-
- uses: peter-evans/repository-dispatch@v1
54+
- uses: peter-evans/repository-dispatch@v3
5555
with:
5656
token: ${{ secrets.GH_PAT }}
5757
event-type: build-complete

.github/workflows/publish.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,21 @@ on:
44
types: [ release-complete ]
55

66
jobs:
7-
registry:
7+
publish-registry:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
11-
- uses: dawidd6/action-download-artifact@v2
10+
- uses: actions/checkout@v4
11+
- uses: actions/download-artifact@v4
1212
with:
13-
workflow: build
14-
run_id: ${{ github.event.client_payload.artifacts_run_id }}
13+
merge-multiple: true
14+
github-token: ${{ secrets.GITHUB_TOKEN }}
15+
run-id: ${{ github.event.client_payload.artifacts_run_id }}
1516
path: VisualPinball.Engine.PinMAME.Unity
17+
- uses: actions/setup-node@v4
18+
with:
19+
node-version: '20.x'
20+
registry-url: 'https://registry.visualpinball.org'
1621
- name: Publish
17-
run: |
18-
cd VisualPinball.Engine.PinMAME.Unity
19-
echo "//registry.visualpinball.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
20-
npm publish
22+
run: npm publish
2123
env:
22-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
release:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v3
10+
- uses: actions/checkout@v4
1111
with:
1212
fetch-depth: 0
1313
- name: Fetch next version
@@ -31,7 +31,7 @@ jobs:
3131
git commit -m "release: ${{ steps.nextVersion.outputs.nextTag }}."
3232
git push
3333
commitish=$(git rev-parse HEAD)
34-
echo ::set-output name=commitish::${commitish}
34+
echo "commitish=${commitish}" >> $GITHUB_OUTPUT
3535
env:
3636
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3737
- name: Create Release
@@ -48,7 +48,7 @@ jobs:
4848
runs-on: ubuntu-latest
4949
needs: [ release ]
5050
steps:
51-
- uses: peter-evans/repository-dispatch@v1
51+
- uses: peter-evans/repository-dispatch@v3
5252
with:
5353
token: ${{ secrets.GH_PAT }}
5454
event-type: release-complete

0 commit comments

Comments
 (0)