Skip to content

Commit

Permalink
change npm usage to yarn inside publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
robertKozik committed Feb 5, 2024
1 parent 6363592 commit b086108
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,11 @@ jobs:
- name: Create branch for version-bump pull request
run: git checkout -b ${{ env.BRANCH_NAME }}

- name: Install npm packages
run: npm ci
- name: Install yarn packages
run: yarn install --immutable

- name: Update npm version
run: npm version patch
run: yarn version --patch

- name: Set new version in GitHub ENV
run: echo "NEW_VERSION=$(jq '.version' package.json)" >> $GITHUB_ENV
Expand Down Expand Up @@ -79,9 +79,9 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Build package
run: npm run build
run: yarn prepare

- name: Publish to npm
run: npm publish
run: yarn publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit b086108

Please sign in to comment.