Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 17 additions & 12 deletions .github/workflows/configcat-publicapi-node-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,44 +6,49 @@ on:
tags: [ 'v[0-9]+.[0-9]+.[0-9]+' ]
pull_request:
branches: [ master ]

workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- uses: actions/setup-node@v4
- uses: actions/setup-node@v5
with:
node-version: 18

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

publish:
needs: test
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags')
runs-on: ubuntu-latest
permissions:
id-token: write # Required for OIDC (see also https://docs.npmjs.com/trusted-publishers)
contents: read
steps:
- uses: actions/checkout@v4
- uses: actions/checkout@v5

- uses: actions/setup-node@v4
- uses: actions/setup-node@v5
with:
node-version: 18
node-version: 22
registry-url: 'https://registry.npmjs.org'

# Ensure npm 11.5.1 or later is installed
- name: Update npm
run: npm install -g npm@latest

- name: Install dependencies
run: npm install

- name: Build
run: npm run build

- name: 🚀Publish
run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_API_KEY }}
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "configcat-publicapi-node-client",
"version": "3.0.2",
"version": "3.0.3",
"description": "NodeJS client for configcat-publicapi-node-client",
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand All @@ -16,5 +16,9 @@
"@types/bluebird": "^3.5.33",
"@types/node": "^12",
"typescript": "^4.0"
},
"repository": {
"type": "git",
"url": "https://github.com/configcat/configcat-publicapi-node-client"
}
}