From 753363dd444a4e8de39bc2356116345bd565b5b9 Mon Sep 17 00:00:00 2001 From: "pakintada@gmail.com" Date: Fri, 29 Mar 2024 09:14:11 +0700 Subject: [PATCH] ci(release): :construction: try testing ci release Building artifact for downloading --- .github/publish.yml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .github/publish.yml diff --git a/.github/publish.yml b/.github/publish.yml new file mode 100644 index 0000000..0feb73a --- /dev/null +++ b/.github/publish.yml @@ -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 }}