Skip to content

Commit

Permalink
ci: semantic-release attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
asmyshlyaev177 committed Sep 9, 2024
1 parent 2c0689e commit 61ded38
Showing 1 changed file with 21 additions and 15 deletions.
36 changes: 21 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ jobs:
id-token: write # to enable use of OIDC for npm provenance
steps:
- uses: actions/checkout@v4
# with:
# persist-credentials: false
with:
persist-credentials: false
- uses: actions/setup-node@v4
with:
node-version: '20.x'
Expand All @@ -80,8 +80,8 @@ jobs:
- name: Install dependencies
if: steps.cache.outputs.cache-hit != 'true'
run: npm clean-install
- name: build
run: npm run build
# - name: build
# run: npm run build
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
run: npm audit signatures
# - name: Debug
Expand All @@ -98,16 +98,22 @@ jobs:
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

- run: npm run bump && npm run build
- name: github push
run: git push --follow-tags
- uses: JS-DevTools/npm-publish@v3
id: publish
with:
token: ${{ secrets.NPM_TOKEN }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
provenance: true
# - run: npm run bump && npm run build
- run: npm run build
# - name: github push
# run: git push --follow-tags
# - uses: JS-DevTools/npm-publish@v3
# id: publish
# with:
# token: ${{ secrets.NPM_TOKEN }}
# GH_TOKEN: ${{ secrets.GH_TOKEN }}
# provenance: true

- if: ${{ steps.publish.outputs.type }}
run: echo "Version changed!"
# - if: ${{ steps.publish.outputs.type }}
# run: echo "Version changed!"

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release

0 comments on commit 61ded38

Please sign in to comment.