Skip to content

Commit

Permalink
Release Workflow (#25)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
daliborgogic authored Oct 3, 2019
1 parent e1f75ed commit 856640d
Show file tree
Hide file tree
Showing 2 changed files with 55 additions and 30 deletions.
34 changes: 4 additions & 30 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
name: Module Cross-platform CI

on: [push]

on:
push:
branches:
- dev
jobs:
build:
runs-on: ${{ matrix.os }}
Expand All @@ -21,31 +23,3 @@ jobs:
npm test
env:
CI: true

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: |
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
publish-gpr:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://npm.pkg.github.com/
scope: '@daliborgogic'
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GH_TOKEN}}
51 changes: 51 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
name: Module Release

on: [release]

jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, windows-latest, macOS-latest]
node-version: [12.x]
steps:
- uses: actions/checkout@v1
- name: Use Module ${{ matrix.node-version }} on ${{ matrix.os }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: npm install and test
run: |
npm i
npm test
env:
CI: true

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- run: |
npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# publish-gpr:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v1
# - uses: actions/setup-node@v1
# with:
# node-version: 12
# registry-url: https://npm.pkg.github.com/
# scope: '@daliborgogic'
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.GH_TOKEN}}

0 comments on commit 856640d

Please sign in to comment.