Build and Publish Edge Delivery Package #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Publish Edge Delivery Package | |
on: | |
workflow_dispatch: | |
jobs: | |
build_and_publish: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
with: | |
token: ${{ secrets.GH_PAT }} # TODO - Update GH_PAT secret with Service Account PAT | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20' | |
registry-url: 'https://npm.pkg.github.com' | |
always-auth: true | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GH_PAT }} | |
- name: Clone Internal Repository | |
env: | |
GH_PAT: ${{ secrets.GH_PAT }} | |
run: git clone https://x-access-token:${GH_PAT}@github.com/${{ secrets.GIT_REPO_PATH }} | |
- name: Build and Publish | |
run: | | |
# TODO - Remove this change directory when library-starter is in the root of the repository | |
echo "[Edge Delivery GHA]: Changing directory to library-starter" | |
cd edge-delivery-internal/library-starter | |
# TODO - Change bash directory when library-starter is in the root of the repository | |
bash ./../.github/workflows/scripts/common-build-steps.sh | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.GH_PAT }} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
JFROG_USERNAME: ${{ secrets.JFROG_USERNAME }} | |
JFROG_TOKEN: ${{ secrets.JFROG_TOKEN }} |