@@ -26,19 +26,19 @@ jobs:
2626 uses : actions/setup-node@v4
2727 with :
2828 node-version : ${{ matrix.node-version }}
29- cache : ' npm '
29+ cache : ' pnpm '
3030
31- - run : npm install
31+ - run : pnpm install
3232
33- - run : npm run lint:js
33+ - run : pnpm run lint:js
3434
35- - run : npm run test -- --runInBand
35+ - run : pnpm run test -- --runInBand
3636
3737 deploy :
3838 permissions :
3939 contents : write
4040 deployments : write
41-
41+
4242 needs : [ test ]
4343 if : github.ref == 'refs/heads/main'
4444 runs-on : ubuntu-latest
@@ -53,19 +53,19 @@ jobs:
5353 uses : actions/setup-node@v4
5454 with :
5555 node-version : 16.x
56- - name : npm install, build,
56+ - name : pnpm install, build,
5757 run : |
5858 mkdir ~/.ssh
5959 ssh-keyscan github.com >> ~/.ssh/known_hosts
60- npm install --no-audit --legacy-peer-deps
60+ pnpm install --no-audit --legacy-peer-deps
6161 version=$(cat package.json | jq -r '.version')
6262 git fetch --unshallow
6363 git fetch --all --tags
6464 TAG=v$version
6565 env :
6666 CI : true
6767 DEPLOY_KEY : ${{ secrets.DEPLOY_KEY }}
68- - name : deploy npm
68+ - name : deploy pnpm
6969 if : github.ref == 'refs/heads/main'
7070 run : |
7171 version=$(cat package.json | jq -r '.version')
7474 echo "tag exists";
7575 else
7676 echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
77- npm publish || echo "already published"
77+ pnpm publish || echo "already published"
7878 fi
7979 env :
8080 NPM_TOKEN : " ${{ secrets.NPM_TOKEN }}"
9191 if git rev-parse "$TAG" >/dev/null 2>&1; then
9292 echo "tag exists";
9393 else
94- npm i -g lerna-changelog
94+ pnpm i -g lerna-changelog
9595 export GITHUB_AUTH=$GITHUB_TOKEN
9696 export changelog=$(lerna-changelog --next-version=$version)
9797 echo -e "# Changelog\n\n$changelog\n$(tail --lines=+2 CHANGELOG.md)" > CHANGELOG.md
0 commit comments