Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
Thanks for submitting a PR! Please check the boxes below:

- [ ] I have read the [Contributing Guide](/Flagsmith/flagsmith/blob/main/CONTRIBUTING.md).
- [ ] I have added information to `docs/` if required so people know about the feature.
- [ ] I have filled in the "Changes" section below.
- [ ] I have filled in the "How did you test this code" section below.

## Changes

Contributes to <!-- insert issue # or URL -->

<!-- Change "Contributes to" to "Closes" if this PR, when merged, completely resolves the referenced issue.
Leave "Contributes to" if the changes need to be released first. -->

_Please describe._

## How did you test this code?

<!-- If the answer is manually, please include a quick step-by-step on how to test this PR. -->

_Please describe._
40 changes: 40 additions & 0 deletions .github/workflows/publish-internal.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish Internal NPM Package

on:
workflow_dispatch:

permissions:
id-token: write
contents: read

jobs:
package:
runs-on: ubuntu-latest
name: Publish Internal NPM Package

steps:
- name: Cloning repo
uses: actions/checkout@v5

- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
registry-url: 'https://registry.npmjs.org'

- run: npm i

- name: Set internal version
run: |
VERSION=$(node -p "require('./lib/flagsmith/package.json').version")
INTERNAL="${VERSION}-internal.${{ github.run_number }}"
echo "Publishing version: $INTERNAL"
cd lib/flagsmith && npm version $INTERNAL --no-git-tag-version
cd ../../lib/react-native-flagsmith && npm version $INTERNAL --no-git-tag-version

- name: Build and test
run: npm run build && npm test

- name: Publish
run: |
cd lib/flagsmith && npm publish --tag internal --access public
cd ../../lib/react-native-flagsmith && npm publish --tag internal --access public