Skip to content

Commit

Permalink
Trigger build
Browse files Browse the repository at this point in the history
  • Loading branch information
pontusab committed Dec 29, 2024
1 parent 1773d72 commit 4a09cd0
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,18 @@ jobs:
- name: Install dependencies
run: bun install
- name: Build
working-directory: packages/cli
run: bun run build
- name: Get version
id: get_version
working-directory: packages/cli
run: |
CURRENT_VERSION=$(node -p "require('./packages/cli/package.json').version")
CURRENT_VERSION=$(node -p "require('./package.json').version")
echo "version=${CURRENT_VERSION}" >> $GITHUB_OUTPUT
echo "new_version=$(npx semver ${CURRENT_VERSION} -i patch)" >> $GITHUB_OUTPUT
- name: Update version
run: |
cd packages/cli
npm version ${{ steps.get_version.outputs.new_version }} --no-git-tag-version
working-directory: packages/cli
run: npm version ${{ steps.get_version.outputs.new_version }} --no-git-tag-version
- name: Create Release
uses: softprops/action-gh-release@v1
with:
Expand All @@ -57,7 +58,7 @@ jobs:
- name: Setup NPM Auth
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Publish to NPM
run: cd packages/cli && npm publish --access public
working-directory: packages/cli
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 4a09cd0

Please sign in to comment.