Skip to content

Commit

Permalink
fix(types): correct type package publish
Browse files Browse the repository at this point in the history
  • Loading branch information
sebtiz13 committed Aug 14, 2023
1 parent 663e163 commit fa9163a
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 24 deletions.
15 changes: 5 additions & 10 deletions .github/workflows/push_branches.workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -55,21 +55,16 @@ jobs:
node-version: "lts/*"
registry-url: "https://registry.npmjs.org"

- name: Go to types directory
run: cd types

- name: Install dependencies
run: npm ci

- name: Release
- name: Build type package
run: npm -prefix ./types run build

- name: Publish package
env:
GITHUB_TOKEN: ${{ secrets.ACCESS_TOKEN_CI }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
SEMANTIC_RELEASE_NPM_PUBLISH: "true"
SEMANTIC_RELEASE_SLACK_WEBHOOK: ${{ secrets.SEMANTIC_RELEASE_SLACK_WEBHOOK }}
run: |
pwd
npx semantic-release
run: cd dist && npm publish

documentation_deploy:
needs: [release-device-manager, release-types]
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
"author": "The Kuzzle Team (support@kuzzle.io)",
"repository": {
"type": "git",
"url": "https://github.com/kuzzleio/kuzzle-plugin-device-manager"
"url": "git+https://github.com/kuzzleio/kuzzle-plugin-device-manager.git"
},
"main": "dist/index.js",
"types": "dist/index.d.ts",
Expand Down
7 changes: 0 additions & 7 deletions types/.releaserc.json

This file was deleted.

6 changes: 0 additions & 6 deletions types/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,6 @@
"build": "./copy-types.sh && node scripts/copy-version.js"
},
"license": "Apache-2.0",
"devDependencies": {
"@semantic-release/changelog": "^6.0.3",
"@semantic-release/git": "^10.0.1",
"semantic-release-config-kuzzle": "^1.0.0",
"semantic-release-slack-bot": "^4.0.2"
},
"files": [
"dist/**/*.d.ts"
]
Expand Down

0 comments on commit fa9163a

Please sign in to comment.