Skip to content

Commit

Permalink
TCS-1288 build: switch from yarn to npm
Browse files Browse the repository at this point in the history
  • Loading branch information
jyann committed Jan 4, 2024
1 parent 8f4663d commit 456e285
Show file tree
Hide file tree
Showing 4 changed files with 30,319 additions and 4,637 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
cache: 'npm'

- run: yarn install
- run: yarn run lint
- run: yarn run test
- run: npm ci
- run: npm run lint
- run: npm run test
10 changes: 5 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: 14
cache: 'yarn'
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

- name: Yarn Install
run: yarn install --network-concurrency 1
- name: NPM Install
run: npm ci --network-concurrency 1

- name: Publish (NPM)
run: yarn publish --access public
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

Expand All @@ -32,6 +32,6 @@ jobs:
registry-url: 'https://npm.pkg.github.com'

- name: Publish (GPR)
run: yarn publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Loading

0 comments on commit 456e285

Please sign in to comment.