Skip to content

Commit be3405d

Browse files
authored
feat: add semantic-release to autopublish (#1015)
Closes #1000
1 parent 92801d6 commit be3405d

File tree

2 files changed

+12
-7
lines changed

2 files changed

+12
-7
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,29 +8,28 @@ on:
88
- '!*'
99
pull_request:
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
14+
1115
jobs:
1216
test:
1317
name: Node ${{ matrix.node }} and ${{ matrix.os }}
18+
timeout-minutes: 30
1419
strategy:
1520
fail-fast: false
1621
matrix:
1722
os: [ubuntu-latest, macos-latest, windows-latest]
1823
node: [14, 16, 18]
1924
runs-on: ${{ matrix.os }}
2025
steps:
21-
- name: Cancel Previous Runs
22-
uses: styfle/[email protected]
23-
with:
24-
access_token: ${{ github.token }}
2526
- uses: actions/checkout@v3
2627
- name: Use Node.js ${{ matrix.node }}
2728
uses: actions/setup-node@v3
2829
with:
2930
cache: yarn
3031
node-version: ${{ matrix.node }}
3132
check-latest: true
32-
- name: Print Node Version
33-
run: node --version
3433
- name: Install Dependencies
3534
run: yarn install
3635
- name: Build Test Binary
@@ -42,3 +41,9 @@ jobs:
4241
- name: Coverage
4342
if: matrix.os == 'ubuntu-latest' && matrix.node == 14 # only run once
4443
run: yarn test-coverage
44+
- name: Maybe Release
45+
if: matrix.os == 'ubuntu-latest' && matrix.node == 18 && github.event_name == 'push' && github.ref == 'refs/heads/main'
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
48+
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ELEVATED }}
49+

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "@vercel/ncc",
33
"description": "Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.",
4-
"version": "0.35.0",
4+
"version": "0.0.0-development",
55
"repository": "vercel/ncc",
66
"license": "MIT",
77
"main": "./dist/ncc/index.js",

0 commit comments

Comments
 (0)