Skip to content

Commit

Permalink
ci: 💚 replacing npm with yarn in semantic release config
Browse files Browse the repository at this point in the history
replacing npm with yarn in semantic release config
  • Loading branch information
t1agob committed Sep 18, 2023
1 parent b247193 commit c86fd2e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,15 +31,15 @@ jobs:
run: yarn lint
- name: Build
run: yarn build
- name: Replace Action
uses: datamonsters/replace-action@v2
with:
files: ./.yarnrc.yml
replacements: NPM_TOKEN=${{secrets.npm_token}}
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
# - name: Replace Action
# uses: datamonsters/replace-action@v2
# with:
# files: ./.yarnrc.yml
# replacements: NPM_TOKEN=${{secrets.npm_token}}
# - name: Publish beta version to NPM (uses package.json version)
# run: yarn npm publish --tag stable --access public
2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ module.exports = {
changelogFile: 'CHANGELOG.md'
}
],
'@semantic-release/npm',
'@semantic-release-yarn',
'@semantic-release/github',
[
'@semantic-release/git',
Expand Down

0 comments on commit c86fd2e

Please sign in to comment.