Skip to content

Commit e8342b4

Browse files
committed
chore: add npm release workflow and bump to 8.6.6
Adds a Release-triggered workflow that publishes to public npm via NPM_PUBLISH_TOKEN_PHANTOM_SECURITY_BOT (mirrors react-native-webview). Bumps version to 8.6.6 to ship the maxBufferSize prop from #2.
1 parent 52bb61e commit e8342b4

2 files changed

Lines changed: 42 additions & 1 deletion

File tree

.github/workflows/release.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Release
2+
3+
# Publishes @phantom/react-native-fast-image to public npm. The @phantom scope is
4+
# public on npmjs.org (the wallet's Artifactory registry proxies it), so this mirrors
5+
# the publish setup used by phantom/react-native-webview, just triggered by a release
6+
# rather than changesets since this fork is bumped infrequently.
7+
#
8+
# To cut a release: bump "version" in package.json on main, then publish a GitHub
9+
# Release tagged v<version> (e.g. v8.6.6). This workflow publishes that version.
10+
11+
on:
12+
release:
13+
types: [published]
14+
workflow_dispatch: {}
15+
16+
permissions:
17+
contents: read
18+
19+
jobs:
20+
publish:
21+
name: Publish to npm
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- uses: actions/setup-node@v4
27+
with:
28+
node-version: 20.x
29+
registry-url: "https://registry.npmjs.org"
30+
scope: "@phantom"
31+
32+
- name: Install dependencies
33+
run: yarn install --frozen-lockfile
34+
35+
- name: Build
36+
run: yarn build
37+
38+
- name: Publish
39+
run: npm publish --access public
40+
env:
41+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN_PHANTOM_SECURITY_BOT }}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@phantom/react-native-fast-image",
3-
"version": "8.6.5",
3+
"version": "8.6.6",
44
"description": "🚩 FastImage, performant React Native image component.",
55
"keywords": [
66
"cache",

0 commit comments

Comments
 (0)