Skip to content

Commit

Permalink
👷 GHActions workflows updated to use cache built into the Node setup …
Browse files Browse the repository at this point in the history
…step
  • Loading branch information
mountainash committed Apr 12, 2024
1 parent 88294a9 commit 7b4e0b7
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 60 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/debug-action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ jobs:
VERCEL_ORG_ID: ${{ secrets.VERCEL_ORG_ID }}
VERCEL_PROJECT_ID: ${{ secrets.VERCEL_PROJECT_ID }}
ALIAS_DOMAINS: |
{BRANCH}.vercel.app
{REPO}-{BRANCH}.vercel.app
{USER}-{REPO}-{SHA}.vercel.app
RUNTIME_ENV: |
LATEST_SHA=${{ github.sha }}
Expand Down
10 changes: 7 additions & 3 deletions .github/workflows/latest-tag.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
name: Tag CI

on:
release:
types: [published, edited]
types:
- published
- edited

jobs:
latest:
name: Latest
runs-on: windows-latest
runs-on: ubuntu-latest
steps:
- name: Update latest tag
uses: Actions-R-Us/actions-tagger@latest
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
publish_latest_tag: true
21 changes: 13 additions & 8 deletions .github/workflows/node.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,42 @@
name: Node CI

on:
push:
branches-ignore:
- main
pull_request:
branches-ignore:
- main

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
- name: Cache node modules
uses: c-hive/gha-npm-cache@v1
with:
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run lint command
run: npm run lint

build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4

- name: Setup Node.js
uses: actions/setup-node@v4
- name: Cache node modules
uses: c-hive/gha-npm-cache@v1
with:
cache: 'npm'

- name: Install dependencies
run: npm ci

- name: Run build command
run: npm run build
47 changes: 0 additions & 47 deletions .github/workflows/release.yml

This file was deleted.

2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
- Updated to eslint v9
- Removed dependency on remote eslint config
- Docs: `secrets.GH_PAT` replaced with `secrets.GITHUB_TOKEN`

- GHActions workflows updated to use cache built into the Node setup step

## [v2.2.6] - 2024-04-12

Expand Down

0 comments on commit 7b4e0b7

Please sign in to comment.