chore: Update publish.yaml to use npm release-it command #36
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: Deploy TypeScript App | |
on: | |
push: | |
branches-ignore: [ main, dev ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
# run_install: true | |
- name: Setup Node.js environment | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'pnpm' | |
- name: quick check | |
run: | | |
pwd | |
ls -la | |
tree | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: eslint | |
run: pnpm lint && tree | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v4 | |
with: | |
version: 9 | |
# run_install: true | |
- name: Setup Node.js | |
uses: actions/setup-node@v4 | |
with: | |
cache: 'pnpm' | |
- name: Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: Build | |
run: pnpm build && tree | |
# check-version: | |
# name: Version Check | |
# runs-on: ubuntu-latest | |
# needs: build | |
# if: ${{ github.actor != 'dependabot[bot]' }} | |
# steps: | |
# # The fetch-depth and fetch-tags options are required | |
# - name: Checkout | |
# id: checkout | |
# uses: actions/checkout@v4 | |
# with: | |
# fetch-depth: 0 | |
# fetch-tags: true | |
# # - name: Setup pnpm | |
# # uses: pnpm/action-setup@v4 | |
# # with: | |
# # version: 9 | |
# - name: Check Version | |
# id: check-version | |
# uses: issue-ops/[email protected] | |
# with: | |
# overwrite: true | |
# manifest-path: package.json | |
# - name: Print version | |
# run: echo ${{ steps.check-version.outputs.version }} | |
# publish: | |
# runs-on: ubuntu-latest | |
# needs: build | |
# steps: | |
# - name: Publish release | |
# env: | |
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
# GITHUB_REPOSITORY: ${{ github.repository }} | |
# run: gh release edit "v${{ steps.version.outputs.version }}" --draft=false |