Skip to content

ci: add git perms

ci: add git perms #8

name: Publish Stable
on:
push:
branches:
- stable
jobs:
publish:
strategy:
fail-fast: false
matrix:
include:
- package: 'lasfoiawbp'
folder: '.'
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up pnpm
uses: pnpm/action-setup@v4
with:
version: 9
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
registry-url: 'https://registry.npmjs.org/'
always-auth: true
cache: pnpm
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
- name: Install Dependencies
run: pnpm install
#- name: Build Project
# run: pnpm build
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Provided by GitHub Actions
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
run: |
git remote set-url origin "https://${{ secrets.GITHUB_TOKEN }}:[email protected]/${{ github.repository }}.git"
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
pnpm dlx semantic-release