Javascript-Library/.gitea/workflows/publish.yml

23 lines
516 B
YAML
Raw Normal View History

2024-04-14 21:34:47 +00:00
name: Publish Package
on:
push:
branches: [master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: "20.x"
registry-url: "https://registry.npmjs.org"
2024-04-14 21:37:02 +00:00
- uses: pnpm/action-setup@v3
name: Install pnpm
with:
version: 8
run_install: false
- run: pnpm ci
- run: pnpm publish
2024-04-14 21:34:47 +00:00
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}