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
18 changes: 4 additions & 14 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
steps:
# Environment setup
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v2
with:
Expand All @@ -33,23 +33,13 @@ jobs:

- name: Test
run: pnpm test

# Update Documentation
- name: Generate Documentation
run: pnpm doc

- name: Publish Documentation
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: docs
branch: gh-pages

# Final touches
- name: Replace version in package.json to be semver compatible
run: sed -i "s/IN-DEV/$(echo $GITHUB_REF | sed 's/refs\/tags\///')/" package.json

# Publish to registries
- name: Publish package on NPM
run: pnpm publish . --access public --no-git-checks
- name: Publish package on GitHub
run: pnpm publish . --access=restricted --no-git-checks --report-summary
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
sToken: ${{ secrets.TECSAFE_PACKAGES_READ_WRITE }}
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
steps:
# Environment setup
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4
- name: Setup Node
uses: actions/setup-node@v2
with:
Expand Down
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,4 +27,4 @@ yarn-error.log*
next-env.d.ts

.parcel-cache/
/docs
/docs
2 changes: 2 additions & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
@tecsafe:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${sToken}
73 changes: 37 additions & 36 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,40 +1,41 @@
{
"name": "@tecsafe/app-js-sdk",
"version": "IN-DEV",
"description": "Tecsafe App JS SDK for automated IFrame and JWT management",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"type": "module",
"license": "MIT",
"devDependencies": {
"@jest/globals": "^29.7.0",
"@parcel/packager-ts": "2.12.0",
"@parcel/transformer-typescript-types": "2.12.0",
"jest": "^29.7.0",
"parcel": "^2.12.0",
"prettier": "^3.3.3",
"ts-jest": "^29.2.5",
"typedoc": "^0.26.6",
"typescript": "^5.5.4"
},
"dependencies": {
"@tecsafe/jwt-sdk": "^0.1.2"
},
"scripts": {
"build": "parcel build",
"doc": "typedoc --out docs src/index.ts",
"test": "echo \"Error: no test specified\"",
"lint": "prettier src/* --check",
"lint:fix": "prettier src/* --write"
},
"targets": {
"main": {
"includeNodeModules": true,
"optimize": true
}
},
"name": "@tecsafe/app-js-sdk",
"repository": "https://github.com/TECSAFE/app-js-sdk",
"version": "IN-DEV",
"description": "Tecsafe App JS SDK for automated IFrame and JWT management",
"source": "src/index.ts",
"main": "dist/index.js",
"module": "dist/index.mjs",
"types": "dist/index.d.ts",
"type": "module",
"license": "MIT",
"devDependencies": {
"@jest/globals": "^29.7.0",
"@parcel/packager-ts": "2.12.0",
"@parcel/transformer-typescript-types": "2.12.0",
"jest": "^29.7.0",
"parcel": "^2.12.0",
"prettier": "^3.3.3",
"ts-jest": "^29.2.5",
"typedoc": "^0.26.6",
"typescript": "^5.5.4"
},
"dependencies": {
"@tecsafe/jwt-sdk": "^0.1.2"
},
"scripts": {
"build": "parcel build",
"doc": "typedoc --out docs src/index.ts",
"test": "echo \"Error: no test specified\"",
"lint": "prettier src/* --check",
"lint:fix": "prettier src/* --write"
},
"targets": {
"main": {
"includeNodeModules": true,
"optimize": true
}
},
"alias": {
"jose": false
}
Expand Down