Skip to content

Merge branch 'main' of https://github.com/mtr-today/mtr-sdk #57

Merge branch 'main' of https://github.com/mtr-today/mtr-sdk

Merge branch 'main' of https://github.com/mtr-today/mtr-sdk #57

Workflow file for this run

name: Publish Package to npmjs
on:
push:
branches:
- main
permissions:
contents: write
pull-requests: write
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version-file: '.node-version'
- uses: pnpm/action-setup@v2
name: Install pnpm
with:
version: 8
- uses: google-github-actions/release-please-action@v3
id: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
release-type: node
- run: pnpm install --frozen-lockfile
if: ${{ steps.release.outputs.release_created }}
- run: pnpm build
if: ${{ steps.release.outputs.release_created }}
- run: pnpm clean-package-json
if: ${{ steps.release.outputs.release_created }}
- run: 'echo "//registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" > ~/.npmrc'
if: ${{ steps.release.outputs.release_created }}
- run: pnpm publish --no-git-checks
if: ${{ steps.release.outputs.release_created }}