Skip to content

Commit

Permalink
Attempt to fix publish
Browse files Browse the repository at this point in the history
  • Loading branch information
anxolin committed Apr 17, 2024
1 parent eca3530 commit aeb330c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
5 changes: 1 addition & 4 deletions .github/workflows/npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ jobs:
- name: Install dependencies
run: yarn install --frozen-lockfile

- name: Build package
run: yarn build

- name: Publish to NPM
run: yarn publish --access public
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
12 changes: 7 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,21 @@
"scripts": {
"dev": "strapi develop",
"start": "strapi start",
"build": "npm run types && npm run build:strapi && npm run build:lib",
"build": "npm run build:strapi && npm run build:lib",
"clean": "rimraf dist",
"build:strapi": "strapi build",
"build:lib": "npx tsc -p tsconfig.lib.json",
"build:lib": "npm run types && npx tsc -p tsconfig.lib.json",
"strapi": "strapi",
"types": "npx openapi-typescript src/extensions/documentation/documentation/1.0.0/full_documentation.json -o src/gen/types.ts",
"prepare": "npm run build"
"prepare": "npm run clean && npm run build:lib"
},
"dependencies": {
"openapi-fetch": "^0.9.3",
"@strapi/plugin-documentation": "4.13.3",
"@strapi/plugin-i18n": "4.13.3",
"@strapi/plugin-users-permissions": "4.13.3",
"@strapi/strapi": "4.13.3",
"better-sqlite3": "8.5.0",
"openapi-fetch": "^0.9.3",
"pg": "^8.11.3"
},
"devDependencies": {
Expand All @@ -36,7 +37,8 @@
"@strapi/strapi": "4.13.3",
"better-sqlite3": "8.5.0",
"openapi-typescript": "^6.7.5",
"pg": "^8.11.3"
"pg": "^8.11.3",
"rimraf": "^5.0.5"
},
"author": {
"name": "A Strapi developer"
Expand Down

0 comments on commit aeb330c

Please sign in to comment.