Skip to content

Commit 856640d

Browse files
authored
Release Workflow (#25)
* fix(deps): update dependency guess-webpack to ^0.4.8 * feat: actions initial * chore(deps): bump esm from 3.0.84 to 3.2.25 (#23) Bumps [esm](https://github.com/standard-things/esm) from 3.0.84 to 3.2.25. - [Release notes](https://github.com/standard-things/esm/releases) - [Commits](standard-things/esm@3.0.84...3.2.25) Signed-off-by: dependabot[bot] <support@github.com> * fix: pipeline is not valid * lint fixes * workflow badge * fix: repo name * v.1.0.8 * action npm 2fa workaround * fix: could not find expected ':' * use token instead 2fa * publish on pkg github * cannot publish over the previously published versions * tmp disable publishing on gpr * workflow release
1 parent e1f75ed commit 856640d

File tree

2 files changed

+55
-30
lines changed

2 files changed

+55
-30
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
name: Module Cross-platform CI
22

3-
on: [push]
4-
3+
on:
4+
push:
5+
branches:
6+
- dev
57
jobs:
68
build:
79
runs-on: ${{ matrix.os }}
@@ -21,31 +23,3 @@ jobs:
2123
npm test
2224
env:
2325
CI: true
24-
25-
publish-npm:
26-
needs: build
27-
runs-on: ubuntu-latest
28-
steps:
29-
- uses: actions/checkout@v1
30-
- uses: actions/setup-node@v1
31-
with:
32-
node-version: 12
33-
registry-url: https://registry.npmjs.org/
34-
- run: |
35-
npm publish
36-
env:
37-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
38-
39-
publish-gpr:
40-
needs: build
41-
runs-on: ubuntu-latest
42-
steps:
43-
- uses: actions/checkout@v1
44-
- uses: actions/setup-node@v1
45-
with:
46-
node-version: 12
47-
registry-url: https://npm.pkg.github.com/
48-
scope: '@daliborgogic'
49-
- run: npm publish
50-
env:
51-
NODE_AUTH_TOKEN: ${{secrets.GH_TOKEN}}

.github/workflows/release.yml

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Module Release
2+
3+
on: [release]
4+
5+
jobs:
6+
build:
7+
runs-on: ${{ matrix.os }}
8+
strategy:
9+
matrix:
10+
os: [ubuntu-latest, windows-latest, macOS-latest]
11+
node-version: [12.x]
12+
steps:
13+
- uses: actions/checkout@v1
14+
- name: Use Module ${{ matrix.node-version }} on ${{ matrix.os }}
15+
uses: actions/setup-node@v1
16+
with:
17+
node-version: ${{ matrix.node-version }}
18+
- name: npm install and test
19+
run: |
20+
npm i
21+
npm test
22+
env:
23+
CI: true
24+
25+
publish-npm:
26+
needs: build
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v1
30+
- uses: actions/setup-node@v1
31+
with:
32+
node-version: 12
33+
registry-url: https://registry.npmjs.org/
34+
- run: |
35+
npm publish
36+
env:
37+
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
38+
39+
# publish-gpr:
40+
# needs: build
41+
# runs-on: ubuntu-latest
42+
# steps:
43+
# - uses: actions/checkout@v1
44+
# - uses: actions/setup-node@v1
45+
# with:
46+
# node-version: 12
47+
# registry-url: https://npm.pkg.github.com/
48+
# scope: '@daliborgogic'
49+
# - run: npm publish
50+
# env:
51+
# NODE_AUTH_TOKEN: ${{secrets.GH_TOKEN}}

0 commit comments

Comments
 (0)