Skip to content

Commit

Permalink
feat: Switch to yarn (#130)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalnagar authored Jul 4, 2023
1 parent 2774b40 commit dc3fb25
Show file tree
Hide file tree
Showing 4 changed files with 6,476 additions and 9,016 deletions.
14 changes: 4 additions & 10 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,15 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Cache npm dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: 'yarn'
- name: Install dependencies
run: npm ci
run: yarn install --frozen-lockfile
- name: Create build
run: npm run build
run: yarn build
- name: Authenticate with the npm registry
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >> ~/.npmrc
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release
run: yarn release
12 changes: 3 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,16 +15,10 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- name: Cache npm dependencies
uses: actions/cache@v3
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
cache: 'yarn'
- name: Install dependencies
run: npm ci
run: yarn install --frozen-lockfile
- name: Create build
run: npm run build
run: yarn build
- name: Release pre-check
run: npm pack
Loading

0 comments on commit dc3fb25

Please sign in to comment.