parent
5e1dec842a
commit
5c1ec76feb
4 changed files with 83 additions and 4077 deletions
21
.github/workflows/nodejs.yml
vendored
21
.github/workflows/nodejs.yml
vendored
|
@ -1,6 +1,6 @@
|
||||||
name: packwatch CI
|
name: packwatch CI
|
||||||
|
|
||||||
on: [push, pull_request]
|
on: [pull_request]
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
lint:
|
lint:
|
||||||
|
@ -49,22 +49,3 @@ jobs:
|
||||||
node-version: ${{ matrix.node-version }}
|
node-version: ${{ matrix.node-version }}
|
||||||
- run: yarn --immutable
|
- run: yarn --immutable
|
||||||
- run: yarn build
|
- run: yarn build
|
||||||
release:
|
|
||||||
name: Release
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: [build, lint, test]
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v1
|
|
||||||
- name: Node setup
|
|
||||||
uses: actions/setup-node@v1
|
|
||||||
with:
|
|
||||||
node-version: 14
|
|
||||||
- name: Prepare
|
|
||||||
run: yarn && yarn build
|
|
||||||
- name: Release
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
||||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
||||||
run: yarn semantic-release
|
|
||||||
|
|
||||||
|
|
30
.github/workflows/release.yml
vendored
Normal file
30
.github/workflows/release.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
||||||
|
name: packwatch release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- 'v*'
|
||||||
|
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
name: Release
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
needs: [build, lint, test]
|
||||||
|
steps:
|
||||||
|
- name: Checkout
|
||||||
|
uses: actions/checkout@v1
|
||||||
|
- name: Node setup
|
||||||
|
uses: actions/setup-node@v1
|
||||||
|
with:
|
||||||
|
node-version: 14
|
||||||
|
- name: Prepare
|
||||||
|
run: yarn && yarn build
|
||||||
|
- name: get tag
|
||||||
|
id: get_tag
|
||||||
|
run: echo ::set-output name=tag::${GITHUB_REF#refs/*/v}
|
||||||
|
- name: Release
|
||||||
|
env:
|
||||||
|
NPM_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||||
|
run: yarn publish --access public --tag latest --new-version ${{steps.get_tag.outputs.tag}}
|
||||||
|
|
|
@ -56,7 +56,6 @@
|
||||||
"jest": "^26.0.1",
|
"jest": "^26.0.1",
|
||||||
"prettier": "^2.0.5",
|
"prettier": "^2.0.5",
|
||||||
"rimraf": "^3.0.2",
|
"rimraf": "^3.0.2",
|
||||||
"semantic-release": "^17.0.4",
|
|
||||||
"typescript": "^4.1.3"
|
"typescript": "^4.1.3"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Reference in a new issue