-
Notifications
You must be signed in to change notification settings - Fork 940
40 lines (32 loc) · 996 Bytes
/
Copy pathboilerplate-release.yml
File metadata and controls
40 lines (32 loc) · 996 Bytes
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
name: Release new boilerplate version
on:
release:
types: [published]
permissions:
id-token: write
contents: write
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.event.release.target_commitish }}
- uses: actions/setup-node@v4
with:
node-version: "24"
registry-url: "https://registry.npmjs.org"
- name: Bump version
run: |
git config --global user.name "ReactNativeBoilerplate Bot"
git config --global user.email "j.dolle.bot@thecodingmachine.com"
npm --no-git-tag-version version ${{ github.event.release.name }}
- name: Publish to NPM
run: npm publish
- name: Commit and push
run: |
git add .
git commit -am "bump(version): tag boilerplate to version ${{ github.event.release.name }}"
git push
env:
github-token: ${{ secrets.GITHUB_TOKEN }}