Skip to content

Commit 6635f47

Browse files
committed
Workflows
1 parent f9a7b76 commit 6635f47

File tree

5 files changed

+52
-4
lines changed

5 files changed

+52
-4
lines changed

.github/workflows/khronos-binaries.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "b*"
77

88
jobs:
9-
release:
9+
release-binaries:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Get the version

.github/workflows/node-ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ on:
77
branches: [ master ]
88

99
jobs:
10-
build:
10+
test:
1111
runs-on: ${{ matrix.os }}
1212
strategy:
1313
matrix:

.github/workflows/npm-package.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ on:
66
- "v*"
77

88
jobs:
9-
build:
9+
check-version:
1010
runs-on: ubuntu-latest
1111
steps:
1212
- name: Read version from tag
@@ -28,6 +28,36 @@ jobs:
2828
- name: Package.json version matches Tag
2929
if: steps.get_version.outputs.VERSION != steps.extract_version.outputs.version
3030
run: exit 1
31+
test:
32+
runs-on: ${{ matrix.os }}
33+
needs: [check-version]
34+
strategy:
35+
matrix:
36+
os: [ubuntu-latest, windows-latest, macos-latest]
37+
node-version: [14.x, 15.x]
38+
steps:
39+
- uses: actions/checkout@v2
40+
- name: Use Node.js ${{ matrix.node-version }}
41+
uses: actions/setup-node@v1
42+
with:
43+
node-version: ${{ matrix.node-version }}
44+
registry-url: 'https://registry.npmjs.org'
45+
- name: NPM install
46+
run: npm install
47+
- name: Build bundle
48+
run: npm run build --if-present
49+
- name: Tests
50+
run: npm test
51+
package:
52+
runs-on: ubuntu-latest
53+
needs: [check-version, test]
54+
steps:
55+
- uses: actions/checkout@v2
56+
# Setup .npmrc file to publish to npm
57+
- uses: actions/setup-node@v2
58+
with:
59+
node-version: '15.x'
60+
registry-url: 'https://registry.npmjs.org'
3161
- name: NPM install
3262
run: npm install
3363
- name: Build bundle

.npmignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
node_modules/
2+
.npm
3+
.eslintcache
4+
.antlr
5+
6+
bin/
7+
build/
8+
typings-autogen/
9+
10+
# Logs
11+
logs
12+
*.log
13+
npm-debug.log*
14+
yarn-debug.log*
15+
yarn-error.log*
16+
lerna-debug.log*

package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
"types": "npm run gentypes && npx rollup -c rollup.config.bundletypes.mjs",
3131
"bundle": "npx rollup -c rollup.config.package.mjs",
3232
"build": "rimraf ./dist && npm run types && npm run bundle",
33-
"test": "node ./test/index.js"
33+
"test": "node ./test/index.js",
34+
"cleanrelease": "rimraf bin && rimraf build && rimraf typings-autogen",
35+
"clean": "rimraf bin && rimraf build && rimraf typings-autogen && rimraf dist"
3436
},
3537
"installBinaries": {
3638
"url": "https://github.com/docd27/rollup-plugin-glsl-optimize/releases/download/",

0 commit comments

Comments
 (0)