Skip to content

Commit

Permalink
fix(repo): publish to git, fix build
Browse files Browse the repository at this point in the history
  • Loading branch information
jrea committed May 22, 2024
1 parent f3ca437 commit d329fa6
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 5 deletions.
Empty file.
2 changes: 1 addition & 1 deletion .github/workflows/package.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ on:
branches:
- stable
jobs:
build:
package:
runs-on: ubuntu-latest
permissions:
contents: write
Expand Down
17 changes: 13 additions & 4 deletions .github/workflows/prerelease.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
packages: write
steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: main
Expand All @@ -27,9 +27,9 @@ jobs:

# Setup .npmrc file to publish to GitHub Packages
- name: Setup Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: "lts/*"
node-version: "20.x"
# registry-url: 'https://npm.pkg.github.com'
# Defaults to the user or organization that owns the workflow file
# scope: '@niledatabase'
Expand Down Expand Up @@ -63,8 +63,17 @@ jobs:
git config user.email "${{ github.actor }}@users.noreply.github.com"
npx lerna version --force-publish --conventional-prerelease --conventional-commits --yes
- name: Publish
- name: Publish to npm
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
npx lerna publish from-git --yes
- name: Update npm for git
run: |
rm -rf .npmrc
echo "@niledatabase:registry=https://npm.pkg.github.com/" >> .npmrc
echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" >> .npmrc
- name: Publish to git
run: npx lerna publish from-git --yes

0 comments on commit d329fa6

Please sign in to comment.