Skip to content

Commit

Permalink
chore: replace nvmrc with tool-versions and update workflow
Browse files Browse the repository at this point in the history
Signed-off-by: Rui Chen <rui@chenrui.dev>
  • Loading branch information
chenrui333 committed Jul 17, 2024
1 parent c8ceeb5 commit 30b4a99
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 13 deletions.
25 changes: 14 additions & 11 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,28 +1,30 @@
name: Main
name: main

on:
workflow_dispatch:
push:
paths-ignore:
- '*.md'
- "*.md"
branches:
- main
- master
pull_request:
paths-ignore:
- '*.md'
- "*.md"
branches:
- main
- master
jobs:
build:
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
node-version-file: ".tool-versions"
cache: "npm"

- name: Install
run: npm ci
- name: Build
Expand All @@ -34,18 +36,19 @@ jobs:

integration:
if: github.event_name == 'push'
runs-on: ubuntu-latest
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: 20
cache: 'npm'
node-version-file: ".tool-versions"
cache: "npm"

- name: Turnstyle
uses: ./ # Uses an action in the root directory
with:
poll-interval-seconds: 10
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Deploy
run: sleep 180
1 change: 0 additions & 1 deletion .node-version

This file was deleted.

1 change: 0 additions & 1 deletion .nvmrc

This file was deleted.

1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
20.15.1

0 comments on commit 30b4a99

Please sign in to comment.