ci(release): 🚧 trying release ci
This commit is contained in:
parent
753363dd44
commit
9b37b89c57
1 changed files with 12 additions and 6 deletions
|
|
@ -1,11 +1,13 @@
|
||||||
name: Web Client Package
|
name: Web Client Package
|
||||||
on:
|
on:
|
||||||
pull_requests:
|
pull_requests:
|
||||||
|
types:
|
||||||
|
- closed
|
||||||
branches:
|
branches:
|
||||||
- releases
|
- releases
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
build:
|
||||||
permissions: write-all
|
if: github.event.pull_request.merged == true
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
|
|
@ -21,9 +23,13 @@ jobs:
|
||||||
run: npm install
|
run: npm install
|
||||||
- name: Build Angular project
|
- name: Build Angular project
|
||||||
run: ng build ${{ inputs.project_name }}
|
run: ng build ${{ inputs.project_name }}
|
||||||
- name: Upload package to Github
|
- name: Create Release
|
||||||
run: |
|
uses: svenstaro/upload-release-action@v2
|
||||||
npm config set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
npm publish --access public
|
|
||||||
env:
|
env:
|
||||||
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
with:
|
||||||
|
draft: false
|
||||||
|
prerelease: false
|
||||||
|
body: ${{ inputs.release_notes }}
|
||||||
|
files: dist/client/*
|
||||||
|
make_latest: true
|
||||||
Loading…
Add table
Add a link
Reference in a new issue