Add tests ci pipeline in gh actions
This commit is contained in:
commit
29e5172002
8 changed files with 129 additions and 14031 deletions
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:
|
||||
pull_request:
|
||||
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'
|
||||
Loading…
Add table
Add a link
Reference in a new issue