Skip to content

Commit

Permalink
chore: update ci actions
Browse files Browse the repository at this point in the history
  • Loading branch information
minimusubi committed Apr 15, 2024
1 parent a796613 commit 4e90da2
Show file tree
Hide file tree
Showing 4 changed files with 63 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 16
node-version: 20

- name: Install dependencies
run: npm ci
Expand All @@ -48,7 +48,7 @@ jobs:

steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
ref: gh-pages

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
environment: release
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
Expand All @@ -24,4 +24,4 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
run: npx semantic-release
32 changes: 32 additions & 0 deletions .github/workflows/simulate-documentation.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: simulate documentation

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches-ignore: [ "main" ]
pull_request:
branches-ignore: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

jobs:
build:
name: build documentation
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Setup Node.js environment
uses: actions/setup-node@v4
with:
node-version: 20

- name: Install dependencies
run: npm ci

- name: Build documentation
run: npm run docs
24 changes: 24 additions & 0 deletions .github/workflows/simulate-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: simulate release
on:
push:
branches-ignore: ["main"]
pull_request:
branches-ignore: ["main"]
jobs:
release:
name: release
runs-on: ubuntu-latest
environment: release
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 'lts/*'
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build && node prepare-package.js

0 comments on commit 4e90da2

Please sign in to comment.