Skip to content

Commit

Permalink
still testing
Browse files Browse the repository at this point in the history
Signed-off-by: Josh Uvi <[email protected]>
  • Loading branch information
Josh-Uvi committed Dec 18, 2024
1 parent 25cf998 commit c6e858d
Showing 1 changed file with 37 additions and 35 deletions.
72 changes: 37 additions & 35 deletions .github/workflows/release-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,39 +34,41 @@ jobs:
if: steps.check.outputs.changed == 'false'
run: 'echo "No version change :/"'

# release:
# needs: checkVersion
# if: ${{ steps.check.outputs.changed == 'true' }}
# name: Create release notes
# runs-on: ubuntu-latest
# permissions:
# contents: write
# steps:
# - name: Create release
# if: ${{ ! startsWith(github.ref, 'refs/tags/')}}
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# tag: ${{ github.ref_name }}
# run: |
# gh release create "$tag" \
# --repo="$GITHUB_REPOSITORY" \
# --title="${tag#v}" \
# --generate-notes
release:
needs: checkVersion
if: ${{ ! startsWith(github.ref, 'refs/tags/')}}
name: Create release notes
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Create release
if: steps.check.outputs.changed == 'true'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
tag: ${{ github.ref_name }}
run: |
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${tag#v}" \
--generate-notes
# publish-gpr:
# needs: release
# name: Publish package
# runs-on: ubuntu-latest
# permissions:
# packages: write
# contents: read
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 20
# registry-url: https://npm.pkg.github.com/
# - run: npm ci
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
publish-gpr:
needs: release
name: Publish package
runs-on: ubuntu-latest
permissions:
packages: write
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
registry-url: https://npm.pkg.github.com/
- run: npm ci
- name: Run Publish
if: steps.check.outputs.changed == 'true'
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

0 comments on commit c6e858d

Please sign in to comment.