Skip to content

Make sure ProAngular components installed are version 20 (#5) #15

Make sure ProAngular components installed are version 20 (#5)

Make sure ProAngular components installed are version 20 (#5) #15

name: Verify and Deploy to GitHub Packages
on:
push:
tags:
- "v*"
permissions:
contents: read
packages: write
id-token: write
jobs:
deploy_gpr_package:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Use Node.js 20
uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://npm.pkg.github.com"
scope: "@proangular"
cache: "npm"
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Lint (optional)
if: hashFiles('.eslintrc*') != ''
run: npm run lint --if-present
- name: Test (optional)
run: npm test --if-present
- name: Read package version
id: pkg
shell: bash
run: |
VERSION=$(node -p 'JSON.parse(require("fs").readFileSync("package.json","utf8")).version')
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
- name: Publish to GitHub Packages
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_CONFIG_PROVENANCE: true
run: npm publish --registry=https://npm.pkg.github.com