Merge pull request #29 from teacoder-team/dev #1
This file contains hidden or 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: Release Library | |
on: | |
push: | |
branches: | |
- main | |
concurrency: ${{ github.workflow }}-${{ github.ref }} | |
jobs: | |
publish: | |
name: Build & Publish nestjs-yookassa | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
shell: bash | |
steps: | |
- name: 📥 Checkout repository | |
uses: actions/checkout@v3 | |
- name: 📦 Set up PNPM | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 9 | |
- name: 🧰 Set up Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: 20 | |
registry-url: 'https://registry.npmjs.org/' | |
cache: 'pnpm' | |
- name: 📥 Install dependencies | |
run: pnpm install --frozen-lockfile | |
- name: 🛠️ Build packages | |
run: pnpm build:packages | |
- name: 🚀 Publish to NPM | |
working-directory: packages/nestjs-yookassa | |
run: pnpm publish --access public | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} |