-
Notifications
You must be signed in to change notification settings - Fork 16
30 lines (30 loc) · 877 Bytes
/
release.yml
File metadata and controls
30 lines (30 loc) · 877 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
name: release
on:
release:
types: [created]
env:
NODE_JS_VERSION: 20.19.5
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write # Required for OIDC
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ env.NODE_JS_VERSION }}
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: yarn prepare
- run: npm publish --access public --provenance
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} # Granular token
- name: Measure binary sizes
run: ./scripts/measure_binary_sizes.sh --compare --output binary-sizes-rn.json
- name: Upload binary sizes artifact
uses: actions/upload-artifact@v4
with:
name: binary-sizes-rn
path: binary-sizes-rn.json