Skip to content

Commit 1790676

Browse files
Updates Changeset GithubAction config
1 parent 3f3f850 commit 1790676

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/publish-to-npm.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,11 @@ jobs:
1616
uses: actions/setup-node@v3
1717
with:
1818
node-version: ${{ matrix.node-version }}
19-
cache: 'yarn'
19+
cache: 'npm'
2020
- uses: actions/cache@v2
2121
with:
2222
path: '**/node_modules'
23-
key: ${{ runner.os }}-node-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**/package.json') }}
23+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/package.json') }}
2424
- name: Create .npmrc file with the NPM token
2525
run: |
2626
cat << EOF > "$HOME/.npmrc"
@@ -29,12 +29,12 @@ jobs:
2929
env:
3030
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3131
- name: Installing dependencies
32-
run: yarn install --frozen-lockfile
32+
run: npm ci
3333
- name: Create Release Pull Request or Publish
3434
id: changesets
3535
uses: changesets/action@v1
3636
with:
37-
publish: yarn run packages:publish
37+
publish: npm run packages:publish
3838
env:
3939
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4040
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)