Skip to content

Commit 904bfcc

Browse files
compat with cjs (#11)
* compat with cjs
1 parent 7558a4e commit 904bfcc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+95
-81
lines changed

.github/workflows/release.yaml

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,12 @@ name: Release
33
on:
44
push:
55
tags:
6-
- 'v*.*.*'
6+
- 'v*.*.*'
7+
- 'v*.*.*-*'
78
permissions:
8-
contents: write
9-
id-token: write
10-
packages: write
9+
contents: write
10+
id-token: write
11+
packages: write
1112

1213
jobs:
1314
release:
@@ -34,10 +35,23 @@ jobs:
3435
- name: Verify the integrity of provenance attestations and registry signatures for installed dependencies
3536
run: npm audit signatures
3637

38+
- name: Determine npm tag and release type
39+
id: release-info
40+
run: |
41+
VERSION=$(node -p "require('./package.json').version")
42+
if [[ "$VERSION" =~ -.*$ ]]; then
43+
echo "npm_tag=next" >> $GITHUB_OUTPUT
44+
echo "is_prerelease=true" >> $GITHUB_OUTPUT
45+
else
46+
echo "npm_tag=latest" >> $GITHUB_OUTPUT
47+
echo "is_prerelease=false" >> $GITHUB_OUTPUT
48+
fi
49+
3750
- name: Publish to npm
38-
run: npm publish --provenance --access public
51+
run: npm publish --provenance --access public --tag ${{ steps.release-info.outputs.npm_tag }}
3952

4053
- name: Create GitHub Release
4154
uses: softprops/action-gh-release@v2
4255
with:
43-
generate_release_notes: true
56+
generate_release_notes: true
57+
prerelease: ${{ steps.release-info.outputs.is_prerelease == 'true' }}

docs/README.md

Lines changed: 2 additions & 2 deletions

docs/enumerations/SortOrder.md

Lines changed: 1 addition & 1 deletion

docs/functions/enrichReportWithInsights.md

Lines changed: 1 addition & 1 deletion

docs/functions/findSuiteByName.md

Lines changed: 1 addition & 1 deletion

docs/functions/findTestById.md

Lines changed: 1 addition & 1 deletion

docs/functions/findTestByName.md

Lines changed: 1 addition & 1 deletion

docs/functions/flattenTree.md

Lines changed: 1 addition & 1 deletion

docs/functions/generateTestIdFromProperties.md

Lines changed: 1 addition & 1 deletion

docs/functions/getAllTests.md

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)