Skip to content

chore: add renovate.json (#1) #2

chore: add renovate.json (#1)

chore: add renovate.json (#1) #2

Workflow file for this run

name: Lint
on:
pull_request:
branches:
- main
push:
branches:
- main
jobs:
build-and-release:
name: Release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
# pulls all commits (needed for lerna / semantic release to correctly version)
fetch-depth: "0"
- name: Setup git user
run: |
git config --global user.name "$(git --no-pager log --format=format:'%an' -n 1)"
git config --global user.email "$(git --no-pager log --format=format:'%ae' -n 1)"
- uses: pnpm/action-setup@v3
- uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: 'pnpm'
- run: pnpm install --frozen-lockfile
- name: Authenticate with Registry
run: |
echo "registry=http://registry.npmjs.org/" >> .npmrc
echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
npm whoami
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
- name: build
run: pnpm build
- name: release package
if: ${{ success() && github.ref == 'refs/heads/main' && github.event_name == 'push' }}
run: pnpm release --dry-run
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}