Skip to content

Commit

Permalink
fix(cicd): publish only dist files and fix workflow scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Redouane64 committed Nov 15, 2023
1 parent 0be0d11 commit 9257bc4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
delete-branch: true
title: Release ${{ steps.date.outputs.date }}
body: |
Merge release `${{ steps.date.outputs.date }}` to main
Merge release `${{ steps.date.outputs.date }}`
labels: |
Release
assignees: Redouane64
2 changes: 1 addition & 1 deletion .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,6 @@ jobs:
node-version: ${{ vars.NODE_VERSION }}
registry-url: 'https://registry.npmjs.org'
- run: npm ci
- run: npm publish --access public
- run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.TOPPASS_NPM_TOKEN }}
5 changes: 3 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:
jobs:
release:
name: Release pushed tag
runs-on: ubuntu-22.04
runs-on: ubuntu-latest
steps:
- name: Create release
env:
Expand All @@ -21,4 +21,5 @@ jobs:
gh release create "$tag" \
--repo="$GITHUB_REPOSITORY" \
--title="${GITHUB_REPOSITORY#*/} ${tag#v}" \
-p
--prerelease
--latest
4 changes: 4 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
.secrets
.vars
build
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,23 @@
{
"name": "@toppass/sdk",
"version": "1.0.0",
"version": "1.0.0-alpha.1",
"description": "TopPass SDK",
"type": "module",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"files": ["dist"],
"scripts": {
"build": "rimraf dist build && tsc && rollup -c rollup.config.js",
"prepublish": "npm run build",
"client:generate": "npx openapi -o src -c axios --name TopPassClient --useUnionTypes --postfixServices ''"
},
"authors": [
"Redhouane Sobaihi"
],
"repository": {
"type": "git",
"url": "https://github.com/To-pass/TopPass.Sdk"
},
"license": "MIT",
"devDependencies": {
"@rollup/plugin-typescript": "^11.1.5",
Expand Down

0 comments on commit 9257bc4

Please sign in to comment.