Build and Publish Edge Delivery Package #1
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' | |
- name: Clone Internal Repository | |
run: git clone ${{ secrets.REPO_URL }} | |
- 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.GITHUB_TOKEN}} | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
JFROG_USERNAME: ${{ secrets.JFROG_USERNAME }} | |
JFROG_TOKEN: ${{ secrets.JFROG_TOKEN }} |