Skip to content

Commit

Permalink
Merge pull request #114 from omnisat/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
hathbanger authored Oct 13, 2024
2 parents ca3586d + 597a10a commit 980c060
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,11 +78,11 @@ jobs:

- name: Bump version for lasereyes (main)
if: ${{ env.changed == 'true' && github.ref == 'refs/heads/main' }}
id: bump
run: |
cd packages/lasereyes
new_version=$(npm version patch)
echo "new_version=${new_version}" >> $GITHUB_ENV
npm version patch
cd ../../
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -105,7 +105,7 @@ jobs:
run: |
git checkout dev
git pull origin dev
git merge -X theirs origin/main # This will favor changes from main in case of conflict
git merge -X theirs origin/main
cd packages/lasereyes
npm version prerelease --preid=rc
cd ../../
Expand Down Expand Up @@ -155,7 +155,7 @@ jobs:
- name: Set is_rc variable
id: set_is_rc
run: |
if [[ "${{ steps.bump.outputs.new_version }}" == *"-rc"* ]]; then
if [[ "${{ env.new_version }}" == *"-rc"* ]]; then
echo "is_rc=true" >> $GITHUB_ENV
else
echo "is_rc=false" >> $GITHUB_ENV
Expand All @@ -170,7 +170,6 @@ jobs:
echo "tag_name=v${{ env.new_version }}" >> $GITHUB_ENV
fi
- name: Create GitHub Release
if: ${{ env.changed == 'true' && github.ref == 'refs/heads/main' && env.is_rc == 'false' }}
uses: actions/create-release@v1
Expand All @@ -183,6 +182,5 @@ jobs:
draft: false
prerelease: false


- name: Post Setup pnpm
run: echo "Workflow completed!"
1 change: 1 addition & 0 deletions packages/lasereyes/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,4 @@ test
test
test
test
test
2 changes: 1 addition & 1 deletion packages/lasereyes/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@omnisat/lasereyes",
"private": false,
"version": "0.0.29",
"version": "0.0.30-rc.1",
"type": "module",
"main": "./dist/index.umd.cjs",
"module": "./dist/index.js",
Expand Down

0 comments on commit 980c060

Please sign in to comment.