-
Notifications
You must be signed in to change notification settings - Fork 254
39 lines (37 loc) · 962 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
name: release
on:
workflow_run:
workflows: ['test']
branches: [main]
types:
- completed
paths:
- 'packages/react-native-autocomplete-input/**'
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.workflow_run.head_branch }}
- name: Setup Node
uses: actions/setup-node@v4
with:
node-version-file: '.node-version'
- name: Install
run: npm ci
- name: Build
run: npm run build
- name: Copy files
run: cp -r {README.md,LICENSE} packages/react-native-autocomplete-input/.
- name: Release
run: cd packages/react-native-autocomplete-input && npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}