Skip to content

Commit

Permalink
chore: upgrade to node v18 (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
saikumarrs authored Mar 6, 2023
1 parent f3aea8e commit f654d34
Show file tree
Hide file tree
Showing 8 changed files with 1,288 additions and 16,710 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# https://github.com/marketplace/actions/jest-coverage-report
name: 'coverage'
name: 'Code Coverage'
on:
pull_request:
branches:
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/housekeeping.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ jobs:
name: Cleanup old branches
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3

- name: Run delete-old-branches-action
uses: beatlabs/[email protected]
with:
Expand Down
32 changes: 24 additions & 8 deletions .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,18 @@ on:
branches:
- "main"
- "release/*"

name: release-please

jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: Extract branch name
- name: Extract Branch Name
shell: bash
run: echo "##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
id: extract_branch

- uses: google-github-actions/release-please-action@v3
id: release
with:
Expand All @@ -22,22 +25,35 @@ jobs:
default-branch: ${{ steps.extract_branch.outputs.branch }}
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false},{"type":"refactor","section":"Miscellaneous","hidden":false},{"type":"test","section":"Miscellaneous","hidden":false},{"type":"doc","section":"Documentation","hidden":false}]'
bump-minor-pre-major: true

# The logic below handles the npm publication:
- uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v3
# these if statements ensure that a publication only occurs when
# a new release is created:
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-node@v2

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 14
node-version-file: '.nvmrc'
cache: 'npm'
if: ${{ steps.release.outputs.release_created }}
- run: npm ci

- name: Install Dependencies
run: npm ci
if: ${{ steps.release.outputs.release_created }}
- run: npm run build

- name: Build Package
run: npm run build
if: ${{ steps.release.outputs.release_created }}
- run: npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}

- name: Configure NPM
run: npm set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
- run: npm publish

- name: Publish Package to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
if: ${{ steps.release.outputs.release_created }}
4 changes: 2 additions & 2 deletions .github/workflows/semantic-pr.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Semantic pull requests"
name: "Semantic Pull Requests"

on:
pull_request:
Expand All @@ -13,7 +13,7 @@ on:

jobs:
main:
name: Validate PR title
name: Validate PR Title
runs-on: ubuntu-latest
steps:
-
Expand Down
19 changes: 10 additions & 9 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -1,22 +1,23 @@
name: tests
name: Tests

on: pull_request

jobs:
install-and-test:
name: install and test
run-tests:
name: Run Tests
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
uses: actions/checkout@v3

- name: Setup node
uses: actions/setup-node@v2
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: 14
node-version-file: '.nvmrc'
cache: 'npm'

- name: Install dependencies
- name: Install Dependencies
run: npm ci

- name: Run tests
- name: Run Tests
run: npm run test
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18.14.2
Loading

0 comments on commit f654d34

Please sign in to comment.