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

25 lines
586 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
2024-04-14 21:39:26 +00:00
- run: pnpm install
- run: pnpm run build
- run: pnpm run test
2024-04-14 21:45:08 +00:00
- run: pnpm publish --no-git-checks
2024-04-14 21:34:47 +00:00
env:
2024-04-14 21:45:08 +00:00
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}