Skip to content

Commit 92e045a

Browse files
authored
Merge pull request #4 from MFB-Technologies-Inc/update-build-workflow
Update build and publish workflows
2 parents 6ce4541 + e1cec80 commit 92e045a

File tree

4 files changed

+24
-19
lines changed

4 files changed

+24
-19
lines changed

.github/workflows/build.yml

+1-8
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,4 @@ jobs:
4242
uses: sonarsource/sonarcloud-github-action@master
4343
env:
4444
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
45-
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
46-
47-
# TODO: #2: add at a later time
48-
# - name: White source scan
49-
# uses: mercari/[email protected]
50-
# with:
51-
# wssUrl: https://saas.whitesourcesoftware.com/agent?ctxId=gs5cnna7eyzxsuq94jficzk091k4aphvv8rhgut5gkw8i
52-
# apiKey: ${{ secrets.WSS_API_KEY }}
45+
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

.github/workflows/publish.yml

+11-1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ jobs:
1717
with:
1818
node-version: '16'
1919

20-
- uses: JS-DevTools/npm-publish@v1
20+
- name: Install packages
21+
run: npm install
22+
23+
- name: Check formatting
24+
run: npm run check-formatting
25+
26+
- name: Run unit tests and generate report
27+
run: npm run test:ci
28+
29+
- name: Publish package
30+
uses: JS-DevTools/npm-publish@v1
2131
with:
2232
token: ${{ secrets.NPM_TOKEN }}

CONTRIBUTING.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# Contributing to React Async Renderer
2+
3+
## Publishing
4+
5+
1. Create a new branch with change log updates and a version bump under the `release/` namespace (e.g. `release/v1.2.1`).
6+
2. Create a pull request and merge that new branch into the `main` branch.
7+
3. [Publish a new Github release](https://docs.github.com/en/enterprise-cloud@latest/repositories/releasing-projects-on-github/managing-releases-in-a-repository#creating-a-release) with a new release tag off of the merge commit of your release. Use the format `v<package.json version number>`, e.g. v1.2.1.
8+
4. Use the GitHub tool to generate the release notes.
9+
5. Rename "Full Changelog" to "Commit Changelog".
10+
6. On a new line, add "**Full Changelog**: `https://github.com/MFB-Technologies-Inc/react-async-renderer/blob/<new tag>/CHANGELOG.md`", replacing `<new tag>` with the tag for this release.
11+
12+
> Publishing a new Github release will trigger the publish Github action, which publishes the new release to NPM.

README.md

-10
Original file line numberDiff line numberDiff line change
@@ -86,16 +86,6 @@ These other utility functions can be used to simplify the logic around `createAs
8686
- `getCascadedAsyncState`: Reduces a chain of asynchronous request objects down one asynchronous request object.
8787
- `getOptimisticAsyncLoadState`: Converts its arguments into an optimistic asynchronous request object such that if the arguments indicate a pending asynchronous request and a fulfilled asynchronous request, then the result is a fulfilled asynchronous request object.
8888

89-
## Publishing
90-
91-
1. Create a new branch with change log updates and a version bump.
92-
2. Create and merge that new branch into the `main` branch.
93-
3. [Publish a new Github release](https://docs.github.com/en/enterprise-cloud@latest/repositories/releasing-projects-on-github/managing-releases-in-a-repository#creating-a-release) with a new release tag off of the `main` branch.
94-
95-
> The release tag should be in the format `v<package.json version number>` (e.g. v1.2.1).
96-
97-
> Publishing a new Github release will trigger a Github action to publish the new release to NPM.
98-
9989
## Changelog
10090

10191
[Changelog](./CHANGELOG.md)

0 commit comments

Comments
 (0)