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
|
||||
on:
|
||||
pull_requests:
|
||||
types:
|
||||
- closed
|
||||
branches:
|
||||
- releases
|
||||
jobs:
|
||||
build:
|
||||
permissions: write-all
|
||||
if: github.event.pull_request.merged == true
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
|
|
@ -21,9 +23,13 @@ jobs:
|
|||
run: npm install
|
||||
- name: Build Angular project
|
||||
run: ng build ${{ inputs.project_name }}
|
||||
- name: Upload package to Github
|
||||
run: |
|
||||
npm config set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }}
|
||||
npm publish --access public
|
||||
- name: Create Release
|
||||
uses: svenstaro/upload-release-action@v2
|
||||
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