diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md new file mode 100644 index 0000000..b28bcbb --- /dev/null +++ b/.github/pull_request_template.md @@ -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 + + + +_Please describe._ + +## How did you test this code? + + + +_Please describe._ diff --git a/.github/workflows/publish-internal.yml b/.github/workflows/publish-internal.yml new file mode 100644 index 0000000..531e30a --- /dev/null +++ b/.github/workflows/publish-internal.yml @@ -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