Skip to content

Commit

Permalink
Merge pull request #74 from strapi-community/feature/setup-publishing-ci
Browse files Browse the repository at this point in the history
Feature/setup publishing ci
  • Loading branch information
boazpoolman authored Dec 13, 2023
2 parents a15a286 + bb2d1b9 commit dac29fa
Show file tree
Hide file tree
Showing 13 changed files with 44 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Release
on:
push:
branches:
- monorepo
- master

concurrency: ${{ github.workflow }}-${{ github.ref }}

Expand All @@ -25,5 +25,9 @@ jobs:

- name: Create Release Pull Request
uses: changesets/action@v1
with:
# This expects you to have a script called release which does a build for your packages and calls changeset publish
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"develop": "turbo run develop",
"eslint": "turbo run eslint",
"eslint:fix": "turbo run eslint:fix",
"release": "turbo run build:release && changeset publish",
"playground:install": "cd playground && yarn install",
"playground:build": "cd playground && yarn build",
"playground:start": "cd playground && yarn start",
Expand Down
6 changes: 6 additions & 0 deletions packages/addons/menus/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# ignore the .ts and .tsx files
*.ts
*.tsx

# include the .d.ts files
!*.d.ts
1 change: 1 addition & 0 deletions packages/addons/menus/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "tsc",
"build:release": "tsc --outDir build",
"prepublishOnly": "cp -r ./build/* . && rm -rf ./build",
"develop": "tsc -w",
"eslint": "../../../node_modules/.bin/eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
"eslint:fix": "../../../node_modules/.bin/eslint --fix './**/*.{js,jsx,ts,tsx}'"
Expand Down
6 changes: 6 additions & 0 deletions packages/addons/redirects/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# ignore the .ts and .tsx files
*.ts
*.tsx

# include the .d.ts files
!*.d.ts
1 change: 1 addition & 0 deletions packages/addons/redirects/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "tsc",
"build:release": "tsc --outDir build",
"prepublishOnly": "cp -r ./build/* . && rm -rf ./build",
"develop": "tsc -w",
"eslint": "../../../node_modules/.bin/eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
"eslint:fix": "../../../node_modules/.bin/eslint --fix './**/*.{js,jsx,ts,tsx}'"
Expand Down
6 changes: 6 additions & 0 deletions packages/addons/sitemap/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# ignore the .ts and .tsx files
*.ts
*.tsx

# include the .d.ts files
!*.d.ts
1 change: 1 addition & 0 deletions packages/addons/sitemap/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"scripts": {
"build": "tsc",
"build:release": "tsc --outDir build",
"prepublishOnly": "cp -r ./build/* . && rm -rf ./build",
"develop": "yarn develop:copy-files && tsc -w",
"develop:copy-files": "copyfiles -u 1 xsl/**/* ../../../playground/src/plugins/webtools-addon-sitemap/xsl/",
"eslint": "../../../node_modules/.bin/eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
Expand Down
6 changes: 6 additions & 0 deletions packages/core/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# ignore the .ts and .tsx files
*.ts
*.tsx

# include the .d.ts files
!*.d.ts
1 change: 1 addition & 0 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"scripts": {
"build": "tsc",
"build:release": "tsc --outDir build",
"prepublishOnly": "cp -r ./build/* . && rm -rf ./build",
"develop": "tsc -w",
"eslint": "../../node_modules/.bin/eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
"eslint:fix": "../../node_modules/.bin/eslint --fix './**/*.{js,jsx,ts,tsx}'"
Expand Down
6 changes: 6 additions & 0 deletions packages/helper-plugin/.npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# ignore the .ts and .tsx files
*.ts
*.tsx

# include the .d.ts files
!*.d.ts
1 change: 1 addition & 0 deletions packages/helper-plugin/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
"main": "src/index.js",
"scripts": {
"build": "tsc --outDir build",
"prepublishOnly": "cp -r ./build/* . && rm -rf ./build",
"develop": "tsc -w",
"eslint": "../../node_modules/.bin/eslint --max-warnings=0 './**/*.{js,jsx,ts,tsx}'",
"eslint:fix": "../../node_modules/.bin/eslint --fix './**/*.{js,jsx,ts,tsx}'"
Expand Down
3 changes: 3 additions & 0 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
"build": {
"dependsOn": ["^build"]
},
"build:release": {
"dependsOn": ["^build:release"]
},
"eslint": {
"outputs": []
},
Expand Down

0 comments on commit dac29fa

Please sign in to comment.