ci(release): 🚧 try testing ci release

Building artifact for downloading
This commit is contained in:
pakintada@gmail.com 2024-03-29 09:14:11 +07:00
parent 044f0a5e84
commit 753363dd44

29
.github/publish.yml vendored Normal file
View file

@ -0,0 +1,29 @@
name: Web Client Package
on:
pull_requests:
branches:
- releases
jobs:
build:
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Open Web Client Folder
run: cd ./client
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
- name: Install Angular CLI
run: npm install -g @angular/cli
- name: Install dependencies
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
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}