Skip to content

Commit 6b4c7f5

Browse files
committed
Enhancement: Update GitHub Actions.
1 parent 440aca7 commit 6b4c7f5

4 files changed

Lines changed: 32 additions & 26 deletions

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,20 @@ jobs:
77
release:
88
needs: lint
99
runs-on: ubuntu-latest
10-
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
10+
if: github.event_name == 'push' && !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci') && startsWith(github.ref, 'refs/tags/')
1111
steps:
12-
- name: Checkout repository
13-
uses: actions/checkout@v2
12+
- name: Checkout the Repository
13+
uses: actions/checkout@v4.1.1
1414
with:
1515
fetch-depth: 0
1616

17-
- name: Setup node
18-
uses: actions/setup-node@v2
17+
- name: Set Up Node.JS
18+
uses: actions/setup-node@v4.0.0
1919
env:
2020
NPM_TOKEN: '' # https://github.com/JS-DevTools/npm-publish/issues/15
2121
with:
2222
cache-dependency-path: package.json # we don't have a package-lock.json so we'll use this instead...
23-
node-version: "18"
23+
node-version: 20
2424

2525
- name: Run `npm install --no-package-lock` on cli-output-helpers
2626
run: npm install --no-package-lock
@@ -46,7 +46,7 @@ jobs:
4646
run: npm run build
4747
working-directory: tools/nevermore-cli
4848

49-
- name: Run npm install
49+
- name: Run NPM Install
5050
run: npm install --no-save
5151

5252
- name: Create Release
@@ -55,9 +55,9 @@ jobs:
5555
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
5656
run: npx auto shipit
5757

58-
- name: Upload lerna logs
58+
- name: Upload Lerna Logs
5959
if: failure()
6060
uses: actions/upload-artifact@v3
6161
with:
6262
name: lerna-debug.log
63-
path: lerna-debug.log
63+
path: lerna-debug.log

.github/workflows/docs.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@ name: publish-docs
22
on:
33
push:
44
branches:
5-
- main
5+
- main
66
workflow_dispatch:
77
jobs:
88
build:
9-
name: Build and deploy docs
9+
name: Build and Deploy the Documentation
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v2
12+
- name: Checkout the Repository
13+
uses: actions/checkout@v4.1.1
1414
with:
15-
node-version: "18"
15+
fetch-depth: 0
16+
- name: Set Up Node.JS
17+
uses: actions/setup-node@v4.0.0
18+
with:
19+
node-version: 20
1620
- run: npm i -g moonwave@latest
1721
- name: Publish
1822
run: |
@@ -21,4 +25,4 @@ jobs:
2125
git config --global user.name "github-actions-bot"
2226
moonwave build --publish
2327
env:
24-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
28+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/lint-external-prs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ name: lint-external-prs
44
on: [pull_request_target]
55
jobs:
66
lint:
7-
if: "github.event.pull_request.head.repo.fork"
7+
if: github.event.pull_request.head.repo.fork == true
88
uses: ./.github/workflows/lint.yml

.github/workflows/lint.yml

Lines changed: 12 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,28 @@
11
# Reusable workflow that lints the repository!
22
name: lint
3-
on:
4-
workflow_call
3+
on: workflow_call
54
jobs:
65
lint:
76
runs-on: ubuntu-latest
87
steps:
9-
- name: Checkout repository
10-
uses: actions/checkout@v2
8+
- name: Checkout the Repository
9+
uses: actions/checkout@v4.1.1
10+
with:
11+
fetch-depth: 0
1112

12-
- name: Setup Aftman
13-
uses: ok-nick/setup-aftman@v0.3.0
13+
- name: Setting up Aftman
14+
uses: ok-nick/setup-aftman@v0.4.2
1415
with:
15-
version: "v0.2.7"
16+
version: 'v0.2.7'
17+
cache: 'true'
1618
token: ${{ secrets.GITHUB_TOKEN }}
1719

18-
- name: Generate standard library
20+
- name: Generate the Standard Library
1921
run: selene generate-roblox-std
2022

21-
- name: Run Selene
23+
- name: Source Checking With Selene
2224
run: selene src
2325

2426
- name: Run moonwave-extractor
2527
if: success() || failure()
26-
run: moonwave-extractor extract src
28+
run: moonwave-extractor extract src

0 commit comments

Comments
 (0)