chore(deps): update dependency lerna to v7 #620
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Checks | |
on: [push] | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup Node.js | |
uses: actions/setup-node@v2 | |
with: | |
node-version: '18' | |
- run: yarn install --frozen-lockfil | |
- run: yarn typecheck | |
- run: yarn lint | |
- run: yarn test | |
publish: | |
name: Release | |
runs-on: ubuntu-latest | |
needs: [test] | |
if: ${{ github.ref == 'refs/heads/master' }} | |
steps: | |
# Checkout | |
- uses: actions/checkout@v2 | |
with: | |
ref: 'master' | |
fetch-depth: 0 | |
# Configure GPG | |
- run: | | |
mkdir -p ~/.gnupg/ | |
printf "$GPG_SIGNING_KEY" | base64 --decode > ~/.gnupg/private.key | |
gpg --import ~/.gnupg/private.key | |
env: | |
GPG_SIGNING_KEY: ${{ secrets.GPG_SIGNING_KEY }} | |
# Configure Git | |
- run: | | |
git config --local user.email $GIT_EMAIL | |
git config --local user.name $GIT_USER | |
git config --local user.signingkey $GPG_KEY_ID | |
git config --local commit.gpgsign true | |
env: | |
GIT_USER: ${{ secrets.GIT_USER }} | |
GIT_EMAIL: ${{ secrets.GIT_EMAIL }} | |
GPG_KEY_ID: ${{ secrets.GPG_KEY_ID}} | |
# NPM Registry | |
- uses: actions/setup-node@v2 | |
with: | |
node-version: '18.x' | |
registry-url: 'https://registry.npmjs.org' | |
scope: ${{ secrets.SCOPE }} | |
# Install | |
- run: yarn install --frozen-lockfile | |
- run: yarn lerna version --yes | |
env: | |
GH_TOKEN: ${{ secrets.GH_TOKEN }} | |
# Publish to NPM | |
- run: yarn lerna publish from-package --no-verify-access --yes | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |