Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
Nycolaide committed Jan 30, 2025
1 parent c509b1a commit f113c08
Showing 1 changed file with 22 additions and 6 deletions.
28 changes: 22 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,8 @@ jobs:
needs: build
permissions:
contents: write
outputs:
publish_package: ${{ steps.set_release_valid.outputs.publish_package }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -69,19 +71,20 @@ jobs:
npm_version: $(npm show $PACKAGE_NAME version || echo "0.0.0")

- name: Compare Diff
id: set_release_valid
if: env.local_version != env.npm_version
run: |
echo "${{ env.local_version }}"
echo "${{ env.npm_version }}"
env:
change_version: false
echo "publish_package=true" >> $GITHUB_OUTPUT
# env:
# change_version: false

- name: Compare Egal
if: env.local_version == env.npm_version
run: |
echo "${{ env.local_version }}"
echo "${{ env.npm_version }}"
exit 1
env:
change_version: true

Expand All @@ -93,10 +96,22 @@ jobs:
run: |
echo "Publishing version ${{ env.local_version }} > ${{ env.npm_version }}"
env:
NODE_AUTH_TOKEN:
${{ secrets.NPM_AUTH_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

#npm publish --tag insiders
test:
runs-on: ubuntu-latest
needs: prepublish
env:
publish_package: ${{ needs.prepublish.outputs.publish_package }}

steps:
- uses: actions/checkout@v4

- name: Display publish_package
run: |
echo "${{ env.publish_package }}"
# npm publish --tag insiders

# - name: New prerelease version
# id: get_version_release
Expand All @@ -120,6 +135,7 @@ jobs:
# git commit -a -m "publish release - ${{ steps.get_version_release.outputs.version_release }}"
# git status
# git push

# publish:
# runs-on: ubuntu-latest
# needs: prepublish
Expand Down

0 comments on commit f113c08

Please sign in to comment.