Skip to content

Commit 03b9e1c

Browse files
authored
Merge pull request #796 from CodinGame/update-github-actions
Update github actions
2 parents b3f6da1 + ebffb54 commit 03b9e1c

2 files changed

Lines changed: 67 additions & 67 deletions

File tree

.github/workflows/check_build.yml

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -13,35 +13,35 @@ jobs:
1313
with:
1414
# we actually need "github.event.pull_request.commits + 1" commit
1515
fetch-depth: 0
16-
- name: Volta
17-
uses: volta-cli/action@v4
16+
- name: mise-en-place
17+
uses: jdx/mise-action@v4
1818
- run: npm ci --ignore-scripts
1919
- run: npx commitlint --from ${{ github.event.pull_request.head.sha }}~${{ github.event.pull_request.commits }} --to ${{ github.event.pull_request.head.sha }} --verbose
2020
check:
2121
name: Check build
2222
runs-on: ubuntu-latest
2323

2424
steps:
25-
- name: Checkout
26-
uses: actions/checkout@v6
27-
- name: Install build dependencies
28-
run: |
29-
sudo apt-get update
30-
sudo apt-get install libkrb5-dev libxkbfile-dev libx11-6
31-
- name: mise-en-place
32-
uses: jdx/mise-action@v3
33-
- name: Install dependencies
34-
run: npm ci
35-
- name: Build
36-
run: npm run build
37-
- name: Release dry run
38-
env:
39-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
41-
run: npm run release -- --dry-run
42-
- name: Install demo dependencies
43-
working-directory: ./demo
44-
run: npm ci
45-
- name: Build demo
46-
working-directory: ./demo
47-
run: npm run build
25+
- name: Checkout
26+
uses: actions/checkout@v6
27+
- name: Install build dependencies
28+
run: |
29+
sudo apt-get update
30+
sudo apt-get install libkrb5-dev libxkbfile-dev libx11-6
31+
- name: mise-en-place
32+
uses: jdx/mise-action@v4
33+
- name: Install dependencies
34+
run: npm ci
35+
- name: Build
36+
run: npm run build
37+
- name: Release dry run
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
41+
run: npm run release -- --dry-run
42+
- name: Install demo dependencies
43+
working-directory: ./demo
44+
run: npm ci
45+
- name: Build demo
46+
working-directory: ./demo
47+
run: npm run build

.github/workflows/release.yml

Lines changed: 42 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@ name: Release
22

33
on: workflow_dispatch
44
permissions:
5-
contents: write # to be able to publish a GitHub release
6-
issues: write # to be able to comment on released issues
5+
contents: write # to be able to publish a GitHub release
6+
issues: write # to be able to comment on released issues
77
pull-requests: write # to be able to comment on released pull requests
8-
pages: write # to deploy to Pages
9-
id-token: write # to verify the deployment originates from an appropriate source
8+
pages: write # to deploy to Pages
9+
id-token: write # to verify the deployment originates from an appropriate source
1010
deployments: write
1111
statuses: write
1212

@@ -16,41 +16,41 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- name: Checkout
20-
uses: actions/checkout@v6
21-
with:
22-
# get all tags for semantic release
23-
fetch-depth: 0
24-
- name: Install build dependencies
25-
run: |
26-
sudo apt-get update
27-
sudo apt-get install libkrb5-dev libxkbfile-dev libx11-6 pkg-config
28-
- name: mise-en-place
29-
uses: jdx/mise-action@v3
30-
- name: Install dependencies
31-
run: npm ci
32-
- name: Build
33-
run: npm run build
34-
- name: Release
35-
env:
36-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38-
run: npm run release
39-
- name: Install demo dependencies
40-
working-directory: ./demo
41-
run: npm ci
42-
- name: Build demo
43-
working-directory: ./demo
44-
run: npm run build:netlify
45-
- name: Deploy to Netlify
46-
uses: nwtgck/actions-netlify@v3.0
47-
with:
48-
publish-dir: './demo/dist'
49-
production-branch: main
50-
github-token: ${{ secrets.GITHUB_TOKEN }}
51-
deploy-message: ${{ github.event.pull_request.title }}
52-
netlify-config-path: ./demo/netlify.toml
53-
env:
54-
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
55-
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
56-
timeout-minutes: 1
19+
- name: Checkout
20+
uses: actions/checkout@v6
21+
with:
22+
# get all tags for semantic release
23+
fetch-depth: 0
24+
- name: Install build dependencies
25+
run: |
26+
sudo apt-get update
27+
sudo apt-get install libkrb5-dev libxkbfile-dev libx11-6 pkg-config
28+
- name: mise-en-place
29+
uses: jdx/mise-action@v4
30+
- name: Install dependencies
31+
run: npm ci
32+
- name: Build
33+
run: npm run build
34+
- name: Release
35+
env:
36+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
37+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
38+
run: npm run release
39+
- name: Install demo dependencies
40+
working-directory: ./demo
41+
run: npm ci
42+
- name: Build demo
43+
working-directory: ./demo
44+
run: npm run build:netlify
45+
- name: Deploy to Netlify
46+
uses: nwtgck/actions-netlify@v3.0
47+
with:
48+
publish-dir: './demo/dist'
49+
production-branch: main
50+
github-token: ${{ secrets.GITHUB_TOKEN }}
51+
deploy-message: ${{ github.event.pull_request.title }}
52+
netlify-config-path: ./demo/netlify.toml
53+
env:
54+
NETLIFY_AUTH_TOKEN: ${{ secrets.NETLIFY_AUTH_TOKEN }}
55+
NETLIFY_SITE_ID: ${{ secrets.NETLIFY_SITE_ID }}
56+
timeout-minutes: 1

0 commit comments

Comments
 (0)