File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ Thanks for submitting a PR! Please check the boxes below:
2+
3+ - [ ] I have read the [ Contributing Guide] ( /Flagsmith/flagsmith/blob/main/CONTRIBUTING.md ) .
4+ - [ ] I have added information to ` docs/ ` if required so people know about the feature.
5+ - [ ] I have filled in the "Changes" section below.
6+ - [ ] I have filled in the "How did you test this code" section below.
7+
8+ ## Changes
9+
10+ Contributes to <!-- insert issue # or URL -->
11+
12+ <!-- Change "Contributes to" to "Closes" if this PR, when merged, completely resolves the referenced issue.
13+ Leave "Contributes to" if the changes need to be released first. -->
14+
15+ _ Please describe._
16+
17+ ## How did you test this code?
18+
19+ <!-- If the answer is manually, please include a quick step-by-step on how to test this PR. -->
20+
21+ _ Please describe._
Original file line number Diff line number Diff line change 1+ name : Publish Internal NPM Package
2+
3+ on :
4+ workflow_dispatch :
5+
6+ permissions :
7+ id-token : write
8+ contents : read
9+
10+ jobs :
11+ package :
12+ runs-on : ubuntu-latest
13+ name : Publish Internal NPM Package
14+
15+ steps :
16+ - name : Cloning repo
17+ uses : actions/checkout@v5
18+
19+ - uses : actions/setup-node@v4
20+ with :
21+ node-version-file : .nvmrc
22+ registry-url : ' https://registry.npmjs.org'
23+
24+ - run : npm i
25+
26+ - name : Set internal version
27+ run : |
28+ VERSION=$(node -p "require('./lib/flagsmith/package.json').version")
29+ INTERNAL="${VERSION}-internal.${{ github.run_number }}"
30+ echo "Publishing version: $INTERNAL"
31+ cd lib/flagsmith && npm version $INTERNAL --no-git-tag-version
32+ cd ../../lib/react-native-flagsmith && npm version $INTERNAL --no-git-tag-version
33+
34+ - name : Build and test
35+ run : npm run build && npm test
36+
37+ - name : Publish
38+ run : |
39+ cd lib/flagsmith && npm publish --tag internal --access public
40+ cd ../../lib/react-native-flagsmith && npm publish --tag internal --access public
You can’t perform that action at this time.
0 commit comments