Skip to content

Commit

Permalink
feat: add package build workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
aeffinidi committed Apr 29, 2024
1 parent 301d7e5 commit cfc2463
Show file tree
Hide file tree
Showing 2 changed files with 37 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github-action-scripts/build-and-publish-artifacts.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/bin//bash

# cycle through all subbolders and run npm scripts
cd ./packages

# FIXME:
cd ./auth-provider
npm i --prefix .
npm run package
28 changes: 28 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Publish
on:
push:
branches:
- '**' # matches every branch
- '!main'
pull_request:

# Needed for nx-set-shas when run on the main branch
permissions:
actions: read
contents: read

jobs:
artifacts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 18
- uses: actions/setup-python@v4
with:
python-version: '3.x'
# architecture: 'x64'
# cache: 'pip'
- name: publish artifact
run: .github-action-scripts/build-and-publish-artifacts.sh

0 comments on commit cfc2463

Please sign in to comment.