Skip to content

fix: update-lockfile #1157

fix: update-lockfile

fix: update-lockfile #1157

Workflow file for this run

name: Release New Version
on:
push:
branches:
- main
jobs:
lint_build:
name: Lint & Build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 22.12.0
pnpm-version: 9.15.1
- name: Lint
run: pnpm lint
e2e:
name: E2E tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 22.12.0
pnpm-version: 9.15.1
- name: Build library
run: pnpm lerna:build
- name: Cypress run
uses: cypress-io/github-action@v5
with:
install: false
record: true
start: pnpm demo:http-server
wait-on: 'http://127.0.0.1:8080/lighthouse-viewer/'
command: pnpm cypress:run
env:
CYPRESS_RECORD_KEY: ${{ secrets.CYPRESS_RECORD_KEY }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
release:
name: Build & Release
needs: [e2e]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup
uses: ./.github/actions/setup
with:
node-version: 22.12.0
pnpm-version: 9.15.1
- name: Build library
run: pnpm lerna:build
- name: Configure CI Git User
run: |
git config --global user.name 'Danilo Velasquez'
git config --global user.email 'danilo.velasquez@gmail.com'
git remote set-url origin https://$GITHUB_TOKEN@github.com/dvelasquez/lighthouse-viewer
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: NPM Auth
run: |
echo "//registry.npmjs.org/:_authToken=\${NPM_TOKEN}" >> .npmrc 2> /dev/null
npm whoami
npm config set access public
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: Version
run: pnpm run lerna:release
- name: Publish package
run: pnpm run lerna:deploy:ci
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
update-lockfile:
needs: release
uses: ./.github/workflows/update-lockfile.yml