Skip to content

pipeline

pipeline #15

Workflow file for this run

name: Publish Package Pipeline
on:
push:
branches: "master"
jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: https://registry.npmjs.org/
- uses: pnpm/action-setup@v2.2.2
name: Install pnpm
id: pnpm-install
with:
version: 8
run_install: true
- run: pnpm build
- name: Set git credentials
run: |
git config user.name "aruniverse"
git config user.email "aruniverse@users.noreply.github.com"
git remote set-url origin "https://$REPO_PAT@github.com/aruniverse/adblock-detect-react"
env:
REPO_PAT: ${{ secrets.REPO_PAT }}
- run: pnpm release
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}