Release patch 1.3.1 #85
4 changed files with 52 additions and 6 deletions
|
|
@ -1,9 +1,8 @@
|
|||
name: Publish to NPM
|
||||
name: Publish to NPM as major release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [master]
|
||||
|
||||
branches: [release-patch]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
|
@ -16,8 +15,7 @@ jobs:
|
|||
- uses: actions/checkout@v2
|
||||
|
||||
- run: npm install
|
||||
- run: npm run pack
|
||||
- run: npm run test:headless:singleRun
|
||||
- run: npm run major
|
||||
- run: cp README.md ./src/lib/dist/README.md
|
||||
- uses: JS-DevTools/npm-publish@v1
|
||||
with:
|
||||
23
.github/workflows/npmpub-minor.yml
vendored
Normal file
23
.github/workflows/npmpub-minor.yml
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
name: Publish to NPM as minor release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [release-minor]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node-version: [20.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- run: npm install
|
||||
- run: npm run minor
|
||||
- run: cp README.md ./src/lib/dist/README.md
|
||||
- uses: JS-DevTools/npm-publish@v1
|
||||
with:
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
package: './src/lib/dist/package.json'
|
||||
23
.github/workflows/npmpub-patch.yml
vendored
Normal file
23
.github/workflows/npmpub-patch.yml
vendored
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
name: Publish to NPM as patch release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [release-patch]
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
node-version: [20.x]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
||||
- run: npm install
|
||||
- run: npm run patch
|
||||
- run: cp README.md ./src/lib/dist/README.md
|
||||
- uses: JS-DevTools/npm-publish@v1
|
||||
with:
|
||||
token: ${{ secrets.NPM_TOKEN }}
|
||||
package: './src/lib/dist/package.json'
|
||||
|
|
@ -10,7 +10,9 @@
|
|||
"test:headless:singleRun": "node node_modules/@angular/cli/bin/ng test --browsers=ChromeHeadlessDebug --watch false",
|
||||
"lint": "node node_modules/@angular/cli/bin/ng lint",
|
||||
"e2e": "node node_modules/@angular/cli/bin/ng e2e",
|
||||
"pack": "ng-packagr -p ./src/lib/package.json"
|
||||
"minor": "cd ./src/lib/ && npm version minor && ng-packagr -p package.json",
|
||||
"major": "cd ./src/lib/ && npm version major && ng-packagr -p package.json",
|
||||
"patch": "cd ./src/lib/ && npm version patch && ng-packagr -p package.json"
|
||||
},
|
||||
"private": true,
|
||||
"dependencies": {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue