mirror of
https://github.com/zoriya/elysia-swagger.git
synced 2025-12-06 00:36:10 +00:00
51 lines
950 B
YAML
51 lines
950 B
YAML
name: Publish
|
|
|
|
on:
|
|
release:
|
|
types: [published]
|
|
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
|
|
permissions:
|
|
id-token: write
|
|
|
|
env:
|
|
# Enable debug logging for actions
|
|
ACTIONS_RUNNER_DEBUG: true
|
|
|
|
jobs:
|
|
publish-npm:
|
|
name: 'Publish: npm Registry'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: 'Checkout'
|
|
uses: actions/checkout@v4
|
|
|
|
- name: 'Setup Bun'
|
|
uses: oven-sh/setup-bun@v1
|
|
with:
|
|
bun-version: latest
|
|
registry-url: "https://registry.npmjs.org"
|
|
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: '20.x'
|
|
registry-url: 'https://registry.npmjs.org'
|
|
|
|
- name: Install packages
|
|
run: bun install
|
|
|
|
- name: Build code
|
|
run: bun run build
|
|
|
|
- name: Test
|
|
run: bun run test
|
|
|
|
- name: 'Publish'
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
run: |
|
|
npm publish --provenance --access=public
|