Skip to content

feat: init seo package #42

feat: init seo package

feat: init seo package #42

Workflow file for this run

name: Release
on:
push:
branches:
- main
jobs:
publish:
name: Publish to NPM
if: "!contains(github.event.head_commit.message, '[skip ci]')"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
token: ${{ secrets.GH_TOKEN }}
fetch-depth: 0 # Fetch-depth 0 necessary to get full commit history for checking changes
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
cache: 'npm'
- name: Configure Git
run: |
git config --global user.name "${{ secrets.GIT_USER_NAME }}"
git config --global user.email "${{ secrets.GIT_USER_EMAIL }}"
- name: "GitHub Package Registry Identity"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
echo "//npm.pkg.github.com/:_authToken=$GITHUB_TOKEN" > .npmrc
echo "@exile-watch:registry=https://npm.pkg.github.com/" >> .npmrc
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Lerna publish
if: success()
env:
CI: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: lerna publish --yes