Skip to content

Commit

Permalink
publish to github packages
Browse files Browse the repository at this point in the history
  • Loading branch information
pelikhan committed Sep 23, 2024
1 parent 2a79a81 commit 4bb8771
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Publish package to GitHub Packages
on:
workflow_dispatch:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://npm.pkg.github.com"
scope: "genaiscript"
cache: yarn
- run: yarn install
- run: yarn compile
- run: npm publish
working-directory: packages/cli
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 4bb8771

Please sign in to comment.