Skip to content

Commit d80a639

Browse files
committed
CI: use npm
1 parent c22f28b commit d80a639

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,21 +25,21 @@ jobs:
2525
registry-url: 'https://registry.npmjs.org' # to create .npmrc file with NODE_AUTH_TOKEN
2626
node-version: 22
2727
- name: Install Dependencies
28-
run: yarn install
28+
run: npm ci
2929
- name: Create Release Pull Request or Publish to npm
3030
id: changesets
3131
uses: changesets/action@v1
3232
with:
33-
publish: yarn run release
33+
publish: npm run release
3434
env:
3535
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3636
NPM_TOKEN: ${{ secrets.SHARED_BOT_NPM_TOKEN }}
3737
NODE_AUTH_TOKEN: ${{ secrets.SHARED_BOT_NPM_TOKEN }}
3838
- name: Publish next snapshot
3939
if: steps.changesets.outputs.published != 'true'
4040
run: |
41-
yarn changeset version --snapshot next
42-
yarn changeset publish --no-git-tag --snapshot --tag next
41+
npm exec -- changeset version --snapshot next
42+
npm exec -- changeset publish --no-git-tag --snapshot --tag next
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4545
NPM_TOKEN: ${{ secrets.SHARED_BOT_NPM_TOKEN }}

.github/workflows/test.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,6 @@ jobs:
1717
with:
1818
node-version: ${{ matrix.node_version }}
1919
- name: Install
20-
run: yarn install
20+
run: npm ci
2121
- name: Test
22-
run: yarn test
22+
run: npm test

.github/workflows/website.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,10 @@ jobs:
2020
echo "REPO_NAME=$(echo "$GITHUB_REPOSITORY" | awk -F / '{print $2}')" >> $GITHUB_ENV
2121
echo "CURRENT_VERSION=$(node -p 'require("./package.json").version')" >> $GITHUB_ENV
2222
- name: Install
23-
run: yarn install
23+
run: npm ci
2424
- name: Build
2525
run: |
26-
yarn install
26+
npm ci
2727
npm run website -- --metadataVersion="${CURRENT_VERSION}"
2828
env:
2929
OWNER_NAME: ${{ env.OWNER_NAME }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
"scripts": {
2828
"docs:toc": "markdown-toc -i README.md",
2929
"release": "changeset publish",
30-
"test": "mocha test/ && (cd example && yarn install && npm test)"
30+
"test": "mocha test/ && (cd example && npm ci && npm test)"
3131
},
3232
"dependencies": {
3333
"@textlint-rule/textlint-rule-no-invalid-control-character": "^3.0.0",

0 commit comments

Comments
 (0)