-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (37 loc) · 1018 Bytes
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: release
on:
push:
branches:
- main
jobs:
create-release:
runs-on: ubuntu-latest
outputs:
release_created: ${{ steps.release.outputs.release_created }}
steps:
- uses: google-github-actions/release-please-action@v3
id: release
with:
release-type: node
package-name: '@dripui/react'
publish:
runs-on: ubuntu-latest
permissions:
id-token: write
contents: write
pull-requests: write
needs: create-release
if: ${{ needs.create-release.outputs.release_created }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Bun and NPM registry
uses: oven-sh/setup-bun@v1
- name: Install core dependencies
run: bun i
- name: Setup NPM
run: npm config set //registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}
- name: Publish to NPM
run: npm publish --provenance
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}