Skip to content

Commit

Permalink
fix(custom): испраление semantic release для обновления версии в pack…
Browse files Browse the repository at this point in the history
…age.json
  • Loading branch information
Weksik committed Sep 14, 2024
1 parent 9e629e2 commit 0b89586
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 23 deletions.
35 changes: 18 additions & 17 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,23 +21,24 @@ jobs:
node-version: 22.8.0
- run: npm ci
- run: npm run build
- run: npm audit signatures
- name: Release
# env:
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
# NPM_TOKEN: ${{secrets.NPM_TOKEN}}
run: npx semantic-release

publish-npm:
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 22.8.0
registry-url: https://registry.npmjs.org/
- run: npm ci
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
run: npx semantic-release

# publish-npm:
# needs: build
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-node@v4
# with:
# node-version: 22.8.0
# registry-url: https://registry.npmjs.org/
# - run: npm ci
# - run: npm publish
# env:
# NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
# NPM_TOKEN: ${{secrets.NPM_TOKEN}}
6 changes: 1 addition & 5 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@
}
],
[
"@semantic-release/npm",
{
"npmPublish": false,
"tarballDir": "dist"
}
"@semantic-release/npm"
]
]
}
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@
"prepack": "json -f package.json -I -e \"delete this.devDependencies; delete this.dependencies\"",
"dev": "storybook dev -p 3000",
"build-storybook": "storybook build",
"prepare": "husky"
"prepare": "husky",
"release": "semantic-release --debug"
},
"peerDependencies": {
"@zag-js/checkbox": "^0.68.0",
Expand Down

0 comments on commit 0b89586

Please sign in to comment.