ts-forge 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -0
- package/package.json +2 -2
- package/.github/workflows/development.yml +0 -18
- package/.github/workflows/npm-publish-beta.yml +0 -33
- package/.github/workflows/npm-publish.yml +0 -33
- package/scripts/ci/npm-publish-beta.sh +0 -18
- package/scripts/ci/npm-publish.sh +0 -18
- package/scripts/ci/test.sh +0 -5
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
# This workflow runs tests when code is pushed to the development branch
|
|
2
|
-
|
|
3
|
-
name: Run tests
|
|
4
|
-
|
|
5
|
-
on:
|
|
6
|
-
push:
|
|
7
|
-
branches:
|
|
8
|
-
- development
|
|
9
|
-
|
|
10
|
-
jobs:
|
|
11
|
-
test:
|
|
12
|
-
runs-on: ubuntu-latest
|
|
13
|
-
steps:
|
|
14
|
-
- uses: actions/checkout@v5
|
|
15
|
-
- uses: actions/setup-node@v6
|
|
16
|
-
with:
|
|
17
|
-
node-version: 24
|
|
18
|
-
- run: bash ./scripts/ci/test.sh
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# This workflow publishes a beta version of the npm package when a beta tag is pushed
|
|
2
|
-
|
|
3
|
-
name: Publish npm beta package
|
|
4
|
-
|
|
5
|
-
on:
|
|
6
|
-
push:
|
|
7
|
-
# branches:
|
|
8
|
-
# - main
|
|
9
|
-
tags:
|
|
10
|
-
# Publish on version tags like: v1.2.3
|
|
11
|
-
- v[0-9]+.[0-9]+.[0-9]+-beta.[0-9]+
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
test:
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
steps:
|
|
17
|
-
- uses: actions/checkout@v5
|
|
18
|
-
- uses: actions/setup-node@v6
|
|
19
|
-
with:
|
|
20
|
-
node-version: 24
|
|
21
|
-
- run: bash ./scripts/ci/test.sh
|
|
22
|
-
|
|
23
|
-
publish-beta:
|
|
24
|
-
needs: test
|
|
25
|
-
runs-on: ubuntu-latest
|
|
26
|
-
steps:
|
|
27
|
-
- uses: actions/checkout@v5
|
|
28
|
-
- uses: actions/setup-node@v6
|
|
29
|
-
with:
|
|
30
|
-
node-version: 24
|
|
31
|
-
- run: bash ./scripts/ci/npm-publish-beta.sh
|
|
32
|
-
env:
|
|
33
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
# This workflow publishes a stable version of the npm package when a release tag is pushed
|
|
2
|
-
|
|
3
|
-
name: Publish npm package
|
|
4
|
-
|
|
5
|
-
on:
|
|
6
|
-
push:
|
|
7
|
-
# branches:
|
|
8
|
-
# - main
|
|
9
|
-
tags:
|
|
10
|
-
# Publish on version tags like: v1.2.3
|
|
11
|
-
- v[0-9]+.[0-9]+.[0-9]+
|
|
12
|
-
|
|
13
|
-
jobs:
|
|
14
|
-
test:
|
|
15
|
-
runs-on: ubuntu-latest
|
|
16
|
-
steps:
|
|
17
|
-
- uses: actions/checkout@v5
|
|
18
|
-
- uses: actions/setup-node@v6
|
|
19
|
-
with:
|
|
20
|
-
node-version: 24
|
|
21
|
-
- run: bash ./scripts/ci/test.sh
|
|
22
|
-
|
|
23
|
-
publish:
|
|
24
|
-
needs: test
|
|
25
|
-
runs-on: ubuntu-latest
|
|
26
|
-
steps:
|
|
27
|
-
- uses: actions/checkout@v5
|
|
28
|
-
- uses: actions/setup-node@v6
|
|
29
|
-
with:
|
|
30
|
-
node-version: 24
|
|
31
|
-
- run: bash ./scripts/ci/npm-publish.sh
|
|
32
|
-
env:
|
|
33
|
-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# echo "GITHUB_REF_NAME: " $GITHUB_REF_NAME # branch or tag name
|
|
3
|
-
# echo "GITHUB_REF_TYPE: " $GITHUB_REF_TYPE # branch or tag
|
|
4
|
-
|
|
5
|
-
# Create .npmrc file for authentication
|
|
6
|
-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
|
7
|
-
|
|
8
|
-
# Install dependencies
|
|
9
|
-
npm install
|
|
10
|
-
|
|
11
|
-
# Build the package
|
|
12
|
-
npm run build
|
|
13
|
-
|
|
14
|
-
# Set the npm version based on the GitHub ref name (tag)
|
|
15
|
-
npm version $GITHUB_REF_NAME --no-git-tag-version
|
|
16
|
-
|
|
17
|
-
# Publish the package to npm
|
|
18
|
-
npm publish --access public --tag beta
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
# echo "GITHUB_REF_NAME: " $GITHUB_REF_NAME # branch or tag name
|
|
3
|
-
# echo "GITHUB_REF_TYPE: " $GITHUB_REF_TYPE # branch or tag
|
|
4
|
-
|
|
5
|
-
# Create .npmrc file for authentication
|
|
6
|
-
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > .npmrc
|
|
7
|
-
|
|
8
|
-
# Install dependencies
|
|
9
|
-
npm install
|
|
10
|
-
|
|
11
|
-
# Build the package
|
|
12
|
-
npm run build
|
|
13
|
-
|
|
14
|
-
# Set the npm version based on the GitHub ref name (tag)
|
|
15
|
-
npm version $GITHUB_REF_NAME --no-git-tag-version
|
|
16
|
-
|
|
17
|
-
# Publish the package to npm
|
|
18
|
-
npm publish --access public --tag latest
|