Skip to content

Merge pull request #251 from LUI-UI/release-please--branches--main--c… #166

Merge pull request #251 from LUI-UI/release-please--branches--main--c…

Merge pull request #251 from LUI-UI/release-please--branches--main--c… #166

Workflow file for this run

name: Prepare for release
on:
push:
branches:
- main
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- run: corepack enable
- uses: actions/setup-node@v3
with:
node-version: '18'
cache: pnpm
- name: 📦 Install dependencies
run: pnpm install --frozen-lockfile
- name: 📝 Lint
run: pnpm lint
- name: 📦 build
run: pnpm build
# Configure Git
- name: Git configuration
run: |
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.name "GitHub Actions"
# Update changelog unreleased section with new version
- name: release-please
uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: lui-ui/lui-vue
# The logic below handles the npm publication:
- name: Publish npm
if: ${{ steps.release.outputs.release_created }}
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_ACCESS_TOKEN }}