Change files #16
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: 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/[email protected] | |
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 "[email protected]" | |
git remote set-url origin "https://[email protected]/aruniverse/adblock-detect-react" | |
env: | |
REPO_PAT: ${{ secrets.REPO_PAT }} | |
- run: pnpm release | |
env: | |
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} |