Skip to content

Commit

Permalink
chore: upgrade ci to yarn 2 (#372)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhat-ha authored Aug 22, 2024
1 parent 3ad68f7 commit 834a681
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 26 deletions.
4 changes: 0 additions & 4 deletions .github/CODEORNERS

This file was deleted.

6 changes: 3 additions & 3 deletions .github/workflows/draft-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,10 +39,10 @@ jobs:
cache: "yarn"
registry-url: https://registry.npmjs.org/
- name: Install shared dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Install package dependencies
working-directory: packages/${{ env.PACKAGE_DIR }}
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Test
working-directory: packages/${{ env.PACKAGE_DIR }}
run: yarn test
Expand All @@ -58,7 +58,7 @@ jobs:
- name: Create draft release
working-directory: packages/${{ env.PACKAGE_DIR }}
run: |
yarn release --ci --github.draft --no-npm.publish
yarn release --ci --github.draft --no-npm.publish
env:
NPM_TOKEN: ${{ secrets.NPM_CI_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
19 changes: 7 additions & 12 deletions .github/workflows/publish-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ jobs:
cache: "yarn"
registry-url: https://registry.npmjs.org/
- name: Install shared dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Install package dependencies
working-directory: packages/js
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Publish package
working-directory: packages/js
run: yarn publish --access public
Expand All @@ -55,12 +55,7 @@ jobs:
- name: Release API docs
working-directory: packages/api-docs
run: |
npm run release -- \
$(node ./get_version.js) \
--ci \
--no-npm.publish \
&& \
npm publish --access public
npm run release $(node ./get_version.js) --ci --no-npm.publish && npm publish --access public
env:
CI: true
# Both tokens are present because publishing with
Expand Down Expand Up @@ -113,10 +108,10 @@ jobs:
cache: "yarn"
registry-url: https://registry.npmjs.org/
- name: Install shared dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Install package dependencies
working-directory: packages/react-client
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Publish package
working-directory: packages/react-client
run: yarn publish --access public
Expand Down Expand Up @@ -151,10 +146,10 @@ jobs:
cache: "yarn"
registry-url: https://registry.npmjs.org/
- name: Install shared dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Install package dependencies
working-directory: packages/js
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Release API docs
working-directory: packages/api-docs
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/webrtc-cdn-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ jobs:
cache: "yarn"
registry-url: https://registry.npmjs.org/
- name: Install shared dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Install package dependencies
working-directory: packages/${{ env.PACKAGE_DIR }}
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Test
working-directory: packages/${{ env.PACKAGE_DIR }}
run: yarn test
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/webrtc-test-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ jobs:
cache: "yarn"
registry-url: https://registry.npmjs.org/
- name: Install shared dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable

- name: Install package dependencies
working-directory: packages/js
run: yarn install --frozen-lockfile
run: yarn install --immutable

- name: Test
working-directory: packages/js
Expand All @@ -55,10 +55,10 @@ jobs:
cache: "yarn"
registry-url: https://registry.npmjs.org/
- name: Install shared dependencies
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Install package dependencies
working-directory: packages/js
run: yarn install --frozen-lockfile
run: yarn install --immutable
- name: Build
working-directory: packages/js
run: yarn build
Expand Down
2 changes: 1 addition & 1 deletion packages/api-docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Telnyx WebRTC Client API docs",
"main": "lib/webrtc-api.json",
"scripts": {
"build": "rm -fr ./lib && mkdir ./lib && cd ../js && yarn docs -- --json ../api-docs/lib/webrtc-api.json",
"build": "rm -fr ./lib && mkdir ./lib && cd ../js && yarn docs --json ../api-docs/lib/webrtc-api.json",
"prepare": "yarn build",
"release": "../js/node_modules/.bin/release-it"
},
Expand Down

0 comments on commit 834a681

Please sign in to comment.