Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit 14d5c67

Browse files
committed
chore: switch to github actions for publishing
1 parent ade9b7e commit 14d5c67

File tree

3 files changed

+56
-11
lines changed

3 files changed

+56
-11
lines changed

.github/workflows/nlm-release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# For more information see:
2+
# https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages
3+
4+
name: NLM Release
5+
6+
on:
7+
push:
8+
branches: [ master ]
9+
10+
jobs:
11+
publish-npm:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v4
15+
with:
16+
fetch-depth: 0
17+
- uses: actions/setup-node@v3
18+
with:
19+
node-version: 18
20+
- run: npm ci
21+
- run: npx nlm release
22+
env:
23+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}
24+
NPM_TOKEN: ${{secrets.NPM_TOKEN}}

.github/workflows/npm-test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# This workflow will do a clean install of node dependencies, build the source
2+
# code and run tests across different versions of node
3+
# For more information see:
4+
# https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
5+
6+
name: NPM Test
7+
8+
on:
9+
pull_request:
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
15+
strategy:
16+
matrix:
17+
node-version: [18.x, 20.x]
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
with:
22+
fetch-depth: 0
23+
- name: Use Node.js ${{ matrix.node-version }}
24+
uses: actions/setup-node@v3
25+
with:
26+
node-version: ${{ matrix.node-version }}
27+
- run: npm ci
28+
- run: npm run build --if-present
29+
- run: npm test
30+
- run: npx nlm verify
31+
env:
32+
GH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.travis.yml

Lines changed: 0 additions & 11 deletions
This file was deleted.

0 commit comments

Comments
 (0)