Skip to content

Commit

Permalink
chore: Update workflow for building and publishing Edge Delivery Package
Browse files Browse the repository at this point in the history
  • Loading branch information
SayefReyadh committed May 21, 2024
1 parent 418c189 commit e6bcbc1
Showing 1 changed file with 29 additions and 3 deletions.
32 changes: 29 additions & 3 deletions .github/workflows/publish-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,35 @@ on:
workflow_dispatch:

jobs:
hello_world:
build_and_publish:
runs-on: ubuntu-latest

steps:
- name: Print Hello World
run: echo "Hello, World!"
- 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 }}

0 comments on commit e6bcbc1

Please sign in to comment.