Skip to content

Commit

Permalink
Merge pull request #893 from nodenv/reuse-test-workflow
Browse files Browse the repository at this point in the history
Reuse test workflow
  • Loading branch information
jasonkarns committed May 30, 2024
2 parents e996bab + b959600 commit 4338f6c
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 20 deletions.
14 changes: 1 addition & 13 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,18 +4,6 @@ on:

jobs:
release:
permissions: { contents: write }
permissions: { contents: write, id-token: write}
uses: nodenv/.github/.github/workflows/release.yml@v4
secrets: inherit

npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
scope: '@nodenv'
registry-url: 'https://registry.npmjs.org'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPMJS_TOKEN }}
19 changes: 13 additions & 6 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,22 @@
name: Test
on:
pull_request:
push: { branches: main }
push: {branches: main}
schedule: [{cron: '0 0 10 * *'}] # monthly https://crontab.guru/#0_0_10_*_*
workflow_dispatch:

permissions: read-all

jobs:
test:
runs-on: ${{ matrix.os }}-latest
strategy: { matrix: { os: [ubuntu, macOS] }}
steps:
- uses: actions/checkout@v4
- run: npm cit
uses: nodenv/.github/.github/workflows/test.yml@v4
with: {superlinter: false} # TODO renable superlinter
permissions:
contents: read
packages: read
id-token: write
security-events: write
statuses: write

lts:
runs-on: ubuntu-latest
Expand Down
13 changes: 12 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# node-build

[![Test](https://github.com/nodenv/node-build/workflows/Test/badge.svg)](https://github.com/nodenv/node-build/actions?query=workflow%3ATest)
[![Tests](
https://img.shields.io/github/actions/workflow/status/nodenv/node-build/test.yml?label=tests&logo=github)](
https://github.com/nodenv/node-build/actions/workflows/test.yml)
[![Latest Homebrew Release](
https://img.shields.io/homebrew/v/node-build?logo=homebrew&logoColor=white)](
https://formulae.brew.sh/formula/node-build)
[![Latest GitHub Release](
https://img.shields.io/github/v/release/nodenv/node-build?label=github&logo=github&sort=semver)](
https://github.com/nodenv/node-build/releases/latest)
[![Latest npm Release](
https://img.shields.io/npm/v/@nodenv/node-build?logo=npm&logoColor=white)](
https://www.npmjs.com/package/@nodenv/node-build/v/latest)

node-build is a command-line utility that makes it easy to install virtually any
version of Node, from source or precompiled binary.
Expand Down

0 comments on commit 4338f6c

Please sign in to comment.