Skip to content

Commit c81c4bb

Browse files
author
Luke Bowerman
authored
fix: On build properly set package.json "files" key (#1806)
1 parent 3431d16 commit c81c4bb

File tree

10 files changed

+26
-68
lines changed

10 files changed

+26
-68
lines changed

.github/workflows/canary.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@ on:
1111
- 'packages/**/*.ts'
1212
- 'packages/**/*.tsx'
1313
- 'www/src/**/'
14-
- '!lerna.json'
14+
- '**/package*.json'
15+
tags-ignore:
16+
- v*
1517
jobs:
1618
website:
1719
runs-on: ubuntu-latest

.github/workflows/publish-website.yml

Lines changed: 0 additions & 47 deletions
This file was deleted.

.github/workflows/release-pull-request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ on:
1111
- 'packages/**/*.ts'
1212
- 'packages/**/*.tsx'
1313
- '**/package*.json'
14-
- '!lerna.json'
15-
14+
tags-ignore:
15+
- v*
1616
jobs:
1717
release-pull-request:
1818
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ name: Release & Publish NPM Packages
33
# This workflow does the following if repo does not have git tag that was updated in lerna.json
44
# - creates release git tag
55
# - publishes packages to NPM with latest tag
6+
# - publishes version documentation to web site and aliases /latest to release version
67
#
78
# This workflow is expected to run after merge of release pull requested created by release-pull-request workflow.
89

@@ -20,6 +21,7 @@ jobs:
2021
- name: Clone repository
2122
uses: actions/checkout@v2
2223
with:
24+
persist-credentials: false
2325
ref: main
2426
fetch-depth: 0
2527

@@ -68,3 +70,16 @@ jobs:
6870

6971
- name: Publish to NPM registry
7072
run: yarn lerna publish from-package --yes
73+
74+
- name: Build web site
75+
run: |
76+
yarn website-latest
77+
78+
- name: Deploy 🚀
79+
uses: JamesIves/[email protected]
80+
with:
81+
BRANCH: docs # The branch the action should deploy to.
82+
CLEAN: false # Automatically remove deleted files from the deploy branch
83+
FOLDER: docs # The folder the action should deploy.
84+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
85+
# SINGLE_COMMIT: true

packages/components-providers/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"module": "lib/index.js",
77
"types": "lib/index.d.ts",
88
"files": [
9-
"cjs",
10-
"esm",
11-
"types"
9+
"lib"
1210
],
1311
"sideEffects": false,
1412
"repository": {

packages/components-test-utils/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"module": "lib/index.js",
77
"types": "lib/index.d.ts",
88
"files": [
9-
"cjs",
10-
"esm",
11-
"types"
9+
"lib"
1210
],
1311
"sideEffects": false,
1412
"repository": {

packages/components-theme-editor/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"module": "lib/index.js",
77
"types": "lib/index.d.ts",
88
"files": [
9-
"cjs",
10-
"esm",
11-
"types"
9+
"lib"
1210
],
1311
"sideEffects": false,
1412
"repository": {

packages/components/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"module": "lib/index.js",
77
"types": "lib/index.d.ts",
88
"files": [
9-
"cjs",
10-
"esm",
11-
"types"
9+
"lib"
1210
],
1311
"sideEffects": false,
1412
"repository": {

packages/design-tokens/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"module": "lib/index.js",
77
"types": "lib/index.d.ts",
88
"files": [
9-
"cjs",
10-
"esm",
11-
"types"
9+
"lib"
1210
],
1311
"sideEffects": false,
1412
"repository": {

packages/icons/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,7 @@
66
"module": "lib/index.js",
77
"types": "lib/index.d.ts",
88
"files": [
9-
"cjs",
10-
"esm",
11-
"types"
9+
"lib"
1210
],
1311
"sideEffects": false,
1412
"repository": {

0 commit comments

Comments
 (0)