Skip to content

Bump @babel/traverse from 7.21.5 to 7.23.2 #110

Bump @babel/traverse from 7.21.5 to 7.23.2

Bump @babel/traverse from 7.21.5 to 7.23.2 #110

name: HowLongIveBeenHere-CI
on: [push]
jobs:
install:
name: Install dependencies
runs-on: windows-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Cache node modules
id: cache-npm
uses: actions/[email protected]
env:
cache-name: cached-ios-npm-deps
with:
path: ./node_modules
key: ${{ hashFiles('./package.json') }}
- name: Install required dependencies on cache miss (npm)
if: steps.cache-npm.outputs.cache-hit != 'true'
run: |
npm install
verify:
name: Verify the sources
runs-on: windows-latest
needs: install
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Cache
uses: actions/[email protected]
with:
path: ./node_modules
key: ${{ hashFiles('./package.json') }}
- name: Run ESLint on the sources
run: npx eslint .
- name: Run typechecking
run: npx tsc --noEmit
pre-build-package-verify:
name: Verify the package before build
runs-on: windows-latest
needs: [verify, pre-build-package-compile]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Pull the npm dependencies
uses: actions/[email protected]
with:
path: ./node_modules
key: ${{ hashFiles('./package.json') }}
- name: Pull the compiled sources
uses: actions/[email protected]
with:
path: ./build
key: ${{ hashFiles('./package.json') }}-${{ hashFiles('./app/manifest.json') }}
- name: Verify the package
run: npx web-ext --source-dir "./build" lint
pre-build-package-compile:
name: Compile the sources before build
runs-on: windows-latest
needs: [verify]
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Pull the npm dependencies
uses: actions/[email protected]
with:
path: ./node_modules
key: ${{ hashFiles('./package.json') }}
- name: Transpile
run: npx babel --config-file './.babelrc' ./app --extensions ".ts,.tsx" -Dd ./build
- name: Compile
run: npx webpack --mode 'production'
- name: Cache
uses: actions/[email protected]
with:
path: ./build
key: ${{ hashFiles('./package.json') }}-${{ hashFiles('./app/manifest.json') }}
build:
name: Build the release package
runs-on: windows-latest
needs: [pre-build-package-verify, pre-build-package-compile]
if: github.ref == 'refs/heads/main'
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Pull the npm dependencies
uses: actions/[email protected]
with:
path: ./node_modules
key: ${{ hashFiles('./package.json') }}
- name: Pull the compiled sources
uses: actions/[email protected]
with:
path: ./build
key: ${{ hashFiles('./package.json') }}-${{ hashFiles('./app/manifest.json') }}
- name: Build the release package
run: npx web-ext build --source-dir "./build"
- name: Store the built package
uses: actions/upload-artifact@v2
with:
name: release-candidate-package
path: ./web-ext-artifacts/*