Skip to content

build(deps-dev): bump @lerna-lite/version from 3.3.1 to 3.3.3 #504

build(deps-dev): bump @lerna-lite/version from 3.3.1 to 3.3.3

build(deps-dev): bump @lerna-lite/version from 3.3.1 to 3.3.3 #504

name: Continuous Deployment
on:
push:
branches:
- main
pull_request:
jobs:
continuous-integration:
name: Continuous integration
runs-on: ubuntu-latest
steps:
- name: Download code from GitHub
uses: actions/[email protected]
- name: Install pnpm package manager
uses: pnpm/[email protected]
with:
version: 8.14.1
- name: Set up Node.js version
uses: actions/[email protected]
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies specified in package.json
run: |
pnpm install
pnpm ls --recursive
- name: Run the lint script in package.json scripts
run: |
pnpm run --if-present lint
- name: Run the build script in package.json scripts
run: |
pnpm run --if-present build
- name: Run the test script in package.json scripts
run: |
pnpm run --if-present test
publish-npm:
name: Publish to npm
runs-on: ubuntu-latest
needs: continuous-integration
if: github.ref == 'refs/heads/main'
steps:
- name: Download code from GitHub
uses: actions/[email protected]
with:
token: ${{ secrets.GH_REPO_TOKEN }}
- name: Install pnpm package manager
uses: pnpm/[email protected]
with:
version: 8.14.1
- name: Set up Node.js version
uses: actions/[email protected]
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies as specified in package.json
run: |
pnpm install
pnpm ls --recursive
- name: Run the build script in package.json scripts
run: |
pnpm run --if-present build
- name: Publish to GitHub repository
env:
GITHUB_TOKEN: ${{ secrets.GH_REPO_TOKEN }}
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_AUTHOR_NAME: "NL Design System"
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_COMMITTER_EMAIL }}
GIT_COMMITTER_NAME: "NL Design System"
run: |
git push --set-upstream origin HEAD
pnpm run release -- --yes
- name: Publish to npm repository
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
pnpm config set "//registry.npmjs.org/:_authToken" "${NPM_TOKEN}"
pnpm run publish -- --no-verify-access --yes
pnpm config delete "//registry.npmjs.org/:_authToken"