diff --git a/.github/workflows/npmpublish-beta.yml b/.github/workflows/npmpublish-beta.yml index 0da6bb8b..7c6d77c9 100644 --- a/.github/workflows/npmpublish-beta.yml +++ b/.github/workflows/npmpublish-beta.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v3.3.0 - uses: actions/setup-node@v3.6.0 with: - node-version: 16 + node-version: 22 - run: npm ci - run: npm test @@ -28,7 +28,7 @@ jobs: - uses: actions/checkout@v3.3.0 - uses: actions/setup-node@v3.6.0 with: - node-version: 16 + node-version: 22 registry-url: https://registry.npmjs.org/ - name: Set up NPM authentication run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc diff --git a/.github/workflows/npmpublish-lts.yml b/.github/workflows/npmpublish-lts.yml index a5febcbc..bdb92328 100644 --- a/.github/workflows/npmpublish-lts.yml +++ b/.github/workflows/npmpublish-lts.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v3.3.0 - uses: actions/setup-node@v3.6.0 with: - node-version: 16 + node-version: 22 - run: npm ci - run: npm test @@ -28,7 +28,7 @@ jobs: - uses: actions/checkout@v3.3.0 - uses: actions/setup-node@v3.6.0 with: - node-version: 16 + node-version: 22 registry-url: https://registry.npmjs.org/ - name: Set up NPM authentication run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc diff --git a/.github/workflows/npmpublish-main.yml b/.github/workflows/npmpublish-main.yml index 48c640e3..9abcf3e6 100644 --- a/.github/workflows/npmpublish-main.yml +++ b/.github/workflows/npmpublish-main.yml @@ -17,7 +17,7 @@ jobs: - uses: actions/checkout@v3.3.0 - uses: actions/setup-node@v3.6.0 with: - node-version: 16 + node-version: 22 - run: npm ci - run: npm test @@ -28,7 +28,7 @@ jobs: - uses: actions/checkout@v3.3.0 - uses: actions/setup-node@v3.6.0 with: - node-version: 16 + node-version: 22 registry-url: https://registry.npmjs.org/ - name: Set up NPM authentication run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc diff --git a/.github/workflows/npmpublish-ts.yml b/.github/workflows/npmpublish-ts.yml new file mode 100644 index 00000000..e5b329ce --- /dev/null +++ b/.github/workflows/npmpublish-ts.yml @@ -0,0 +1,38 @@ +# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created +# For more information see: https://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages + +name: Node.js Publish Beta version + +on: + push: + branches: + - 'v*.*-ts' + tags: + - 'v*.*.*-ts' + +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3.3.0 + - uses: actions/setup-node@v3.6.0 + with: + node-version: 22 + - run: npm ci + - run: npm test + + publish-npm: + needs: build + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3.3.0 + - uses: actions/setup-node@v3.6.0 + with: + node-version: 22 + registry-url: https://registry.npmjs.org/ + - name: Set up NPM authentication + run: echo "registry=https://registry.npmjs.org/:_authToken=${{secrets.NPM_TOKEN}}" >> ~/.npmrc + - run: npm ci + - run: npm publish --tag ${GITHUB_REF##*/} + env: + NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} diff --git a/VERSION b/VERSION index ac6715b2..bd87dbcd 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.4.102 \ No newline at end of file +2.4.102-ts \ No newline at end of file