Skip to content

Commit

Permalink
Enhancement: Update GitHub Actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
robloxiandemo committed Dec 5, 2023
1 parent 440aca7 commit 6b4c7f5
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 26 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,20 +7,20 @@ jobs:
release:
needs: lint
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'skip ci')"
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/')
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout the Repository
uses: actions/checkout@v4.1.1
with:
fetch-depth: 0

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

- name: Run `npm install --no-package-lock` on cli-output-helpers
run: npm install --no-package-lock
Expand All @@ -46,7 +46,7 @@ jobs:
run: npm run build
working-directory: tools/nevermore-cli

- name: Run npm install
- name: Run NPM Install
run: npm install --no-save

- name: Create Release
Expand All @@ -55,9 +55,9 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx auto shipit

- name: Upload lerna logs
- name: Upload Lerna Logs
if: failure()
uses: actions/upload-artifact@v3
with:
name: lerna-debug.log
path: lerna-debug.log
path: lerna-debug.log
16 changes: 10 additions & 6 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,17 +2,21 @@ name: publish-docs
on:
push:
branches:
- main
- main
workflow_dispatch:
jobs:
build:
name: Build and deploy docs
name: Build and Deploy the Documentation
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- name: Checkout the Repository
uses: actions/[email protected]
with:
node-version: "18"
fetch-depth: 0
- name: Set Up Node.JS
uses: actions/[email protected]
with:
node-version: 20
- run: npm i -g moonwave@latest
- name: Publish
run: |
Expand All @@ -21,4 +25,4 @@ jobs:
git config --global user.name "github-actions-bot"
moonwave build --publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion .github/workflows/lint-external-prs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,5 @@ name: lint-external-prs
on: [pull_request_target]
jobs:
lint:
if: "github.event.pull_request.head.repo.fork"
if: github.event.pull_request.head.repo.fork == true
uses: ./.github/workflows/lint.yml
22 changes: 12 additions & 10 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,28 @@
# Reusable workflow that lints the repository!
name: lint
on:
workflow_call
on: workflow_call
jobs:
lint:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout the Repository
uses: actions/[email protected]
with:
fetch-depth: 0

- name: Setup Aftman
uses: ok-nick/setup-aftman@v0.3.0
- name: Setting up Aftman
uses: ok-nick/setup-aftman@v0.4.2
with:
version: "v0.2.7"
version: 'v0.2.7'
cache: 'true'
token: ${{ secrets.GITHUB_TOKEN }}

- name: Generate standard library
- name: Generate the Standard Library
run: selene generate-roblox-std

- name: Run Selene
- name: Source Checking With Selene
run: selene src

- name: Run moonwave-extractor
if: success() || failure()
run: moonwave-extractor extract src
run: moonwave-extractor extract src

0 comments on commit 6b4c7f5

Please sign in to comment.