Skip to content

Commit

Permalink
feat: Upgrade deps (#100)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalnagar authored Aug 31, 2023
1 parent 1fedbf1 commit 4a4bcc9
Show file tree
Hide file tree
Showing 7 changed files with 7,236 additions and 12,708 deletions.
25 changes: 7 additions & 18 deletions .github/workflows/cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,28 +11,17 @@ jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16.x
- name: Cache npm dependencies
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
node-version-file: '.nvmrc'
cache: 'yarn'
- name: Install dependencies
run: npm install
run: yarn install
- name: Create build
run: npm run build
run: yarn build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm run release
run: yarn release
16 changes: 7 additions & 9 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,22 +12,20 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [12.x, 14.x, 16.x, 17.x]
node-version: [14.x, 16.x, 18.x, 19.x, 20.x]
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: npm install
run: yarn install --frozen-lockfile
- name: Lint code
run: npm run lint
run: yarn lint
- name: Create build
run: npm run build
run: yarn build
- name: Run tests
run: npm test
- name: Upload test coverage
uses: codecov/codecov-action@v1
run: yarn test
- name: Create release tarball (dry-run)
run: npm pack
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
.DS_Store

# dependencies
node_modules

Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.20.1
lts/hydrogen
Loading

0 comments on commit 4a4bcc9

Please sign in to comment.