chore(deps): update node.js to v24.9.0 (#70) #168
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: 'CI' | |
on: # rebuild any PRs and main branch changes | |
pull_request: | |
push: | |
branches: | |
- main | |
permissions: {} | |
jobs: | |
build: # make sure build/ci work properly | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
steps: | |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
with: | |
node-version-file: package.json | |
- run: | | |
npm ci | |
npm run all | |
- run: | | |
git diff --exit-code ':!dist/index.js.map' ':!badges/coverage.svg' | |
test: # make sure the action works on a clean machine without building | |
runs-on: ${{ matrix.os }} | |
permissions: | |
contents: read | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
env: | |
RUNNER_DEBUG: 1 | |
steps: | |
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
- uses: ./ | |
with: | |
version: 'latest' | |
- run: sops --version | |
- uses: ./ | |
with: | |
version: 'v3.10.0' | |
- run: sops --version | grep 3.10.0 | |
- uses: ./ | |
with: | |
version: 'v3.8.0' | |
- run: sops --version | grep 3.8.0 | |
- uses: ./ | |
with: | |
version: 'v3.5.0' | |
- run: sops --version | grep 3.5.0 | |
super-lint: | |
name: super-lint | |
runs-on: ubuntu-24.04 | |
permissions: | |
contents: read | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
fetch-depth: 0 | |
- name: Lint Code Base | |
uses: super-linter/super-linter/slim@ffde3b2b33b745cb612d787f669ef9442b1339a6 # v8.1.0 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MULTI_STATUS: false | |
LINTER_RULES_PATH: . | |
VALIDATE_ALL_CODEBASE: true | |
VALIDATE_BASH: true | |
VALIDATE_BASH_EXEC: true | |
VALIDATE_ENV: true | |
VALIDATE_GITHUB_ACTIONS: true | |
VALIDATE_HTML: true | |
VALIDATE_NATURAL_LANGUAGE: true | |
VALIDATE_SHELL_SHFMT: true | |
VALIDATE_XML: true | |
VALIDATE_YAML: true | |
release: | |
if: github.repository_owner == 'jkroepke' && github.ref_name == 'main' | |
name: Release | |
runs-on: ubuntu-latest | |
needs: | |
- build | |
- test | |
- super-lint | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/create-github-app-token@67018539274d69449ef7c02e8e71183d1719ab42 # v2.1.4 | |
id: app-token | |
with: | |
app-id: 1248576 | |
private-key: ${{ secrets.AUTOMATION_APP_PRIVATE_KEY }} | |
- name: Checkout | |
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 | |
with: | |
fetch-depth: 0 | |
- name: Setup Node.js | |
uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 | |
with: | |
node-version-file: package.json | |
- name: Install dependencies | |
run: npm clean-install | |
- name: Release | |
env: | |
GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} | |
run: npx semantic-release |