Skip to content

Commit ef5340b

Browse files
authored
chore: add pnpm workspace configuration to manage packages (#1130)
* chore: add pnpm workspace configuration to manage packages * fix(ci): update test command to use pnpm instead of npm * chore: update governance and contributing guidelines, remove package-lock.json
1 parent 663645a commit ef5340b

File tree

25 files changed

+4106
-5727
lines changed

25 files changed

+4106
-5727
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
name: 📃 Documentation Bug
3+
about: You want to report something that is wrong or missing from the documentation.
4+
labels: "Type: Docs"
5+
---
6+
7+
## 📃 Summary
8+
<!--
9+
A clear and concise description of what is missing
10+
-->
11+
12+
## Expected documentation
13+
<!--
14+
A clear and concise description of what you'd like to read
15+
-->

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Explain the **motivation** for making this change. What existing problem does th
1313

1414
<!--
1515
Help reviewers and the release process by included a changeset entry.
16-
Use `npm run changeset` and follow the prompts to create a changeset.
16+
Use `pnpm run changeset` and follow the prompts to create a changeset.
1717
-->
1818

1919
- [ ] Changeset added ([docs](https://github.com/godaddy/javascript#submit-a-changeset))

.github/dependabot.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,40 +4,40 @@ updates:
44
package-ecosystem: github-actions
55
rebase-strategy: auto
66
schedule:
7-
interval: daily
7+
interval: weekly
88
- directory: /
99
package-ecosystem: npm
1010
rebase-strategy: auto
1111
schedule:
12-
interval: daily
12+
interval: weekly
1313
- directory: /packages/eslint-config-godaddy
1414
package-ecosystem: npm
1515
rebase-strategy: auto
1616
schedule:
17-
interval: daily
17+
interval: weekly
1818
- directory: /packages/eslint-config-godaddy-flow
1919
package-ecosystem: npm
2020
rebase-strategy: auto
2121
schedule:
22-
interval: daily
22+
interval: weekly
2323
- directory: /packages/eslint-config-godaddy-react
2424
package-ecosystem: npm
2525
rebase-strategy: auto
2626
schedule:
27-
interval: daily
27+
interval: weekly
2828
- directory: /packages/eslint-config-godaddy-react-flow
2929
package-ecosystem: npm
3030
rebase-strategy: auto
3131
schedule:
32-
interval: daily
32+
interval: weekly
3333
- directory: /packages/eslint-config-godaddy-react-typescript
3434
package-ecosystem: npm
3535
rebase-strategy: auto
3636
schedule:
37-
interval: daily
37+
interval: weekly
3838
- directory: /packages/eslint-config-godaddy-typescript
3939
package-ecosystem: npm
4040
rebase-strategy: auto
4141
schedule:
42-
interval: daily
42+
interval: weekly
4343

.github/workflows/cicd.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,15 @@ jobs:
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v5
17+
18+
- name: Setup pnpm
19+
uses: pnpm/action-setup@v4
1720
- name: Setup Node.js
1821
uses: actions/setup-node@v5
1922
with:
2023
node-version-file: '.nvmrc'
24+
cache: 'pnpm'
2125
- name: Install dependencies
22-
run: npm ci
26+
run: pnpm install
2327
- name: Test
24-
run: npm test
28+
run: pnpm test

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,18 @@ jobs:
1919
uses: actions/setup-node@v5
2020
with:
2121
node-version-file: '.nvmrc'
22+
cache: 'pnpm'
2223

2324
- name: Install Dependencies
24-
run: npm ci
25+
run: pnpm install --prefer-offline
2526

2627
- name: Create Release Pull Request or Publish to npm
2728
id: changesets
2829
uses: changesets/action@v1
2930
with:
31+
version: pnpm run version
3032
# This expects you to have a script called release which does a build for your packages and calls changeset publish
31-
publish: npm run release
33+
publish: pnpm run release
3234
env:
3335
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3436
NPM_TOKEN: ${{ secrets.NPM_SECRET }}

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Close Stale Issues
12-
uses: actions/stale@v8.0.0
12+
uses: actions/stale@v9
1313
with:
1414
repo-token: ${{ secrets.GITHUB_TOKEN }}
1515
stale-pr-message: |

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
22
1+
24

CODE_OF_CONDUCT.md

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Contributor Covenant Code of Conduct
2+
3+
## Our Pledge
4+
5+
In the interest of fostering an open and welcoming environment, we as
6+
contributors and maintainers pledge to making participation in our project and
7+
our community a harassment-free experience for everyone, regardless of age,
8+
body size, disability, ethnicity, sex characteristics, gender identity and
9+
expression, level of experience, education, socio-economic status,
10+
nationality, personal appearance, race, religion, or sexual identity and
11+
orientation.
12+
13+
## Our Standards
14+
15+
Examples of behavior that contributes to creating a positive environment
16+
include:
17+
18+
* Using welcoming and inclusive language
19+
* Being respectful of differing viewpoints and experiences
20+
* Gracefully accepting constructive criticism
21+
* Focusing on what is best for the community
22+
* Showing empathy towards other community members
23+
24+
Examples of unacceptable behavior by participants include:
25+
26+
* The use of sexualized language or imagery and unwelcome sexual attention or
27+
advances
28+
* Trolling, insulting/derogatory comments, and personal or political attacks
29+
* Public or private harassment
30+
* Publishing others' private information, such as a physical or electronic
31+
address, without explicit permission
32+
* Other conduct which could reasonably be considered inappropriate in a
33+
professional setting
34+
35+
## Our Responsibilities
36+
37+
Project maintainers are responsible for clarifying the standards of acceptable
38+
behavior and are expected to take appropriate and fair corrective action in
39+
response to any instances of unacceptable behavior.
40+
41+
Project maintainers have the right and responsibility to remove, edit, or
42+
reject comments, commits, code, wiki edits, issues, and other contributions
43+
that are not aligned to this Code of Conduct, or to ban temporarily or
44+
permanently any contributor for other behaviors that they deem inappropriate,
45+
threatening, offensive, or harmful.
46+
47+
## Scope
48+
49+
This Code of Conduct applies both within project spaces and in public spaces
50+
when an individual is representing the project or its community. Examples of
51+
representing a project or community include using an official project e-mail
52+
address, posting via an official social media account, or acting as an
53+
appointed representative at an online or offline event. Representation of a
54+
project may be further defined and clarified by project maintainers.
55+
56+
## Enforcement
57+
58+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
59+
reported by contacting the GoDaddy OSPO (Open Source Policy Office) at
60+
oss@godaddy.com. All complaints will be reviewed and investigated and will
61+
result in a response that is deemed necessary and appropriate to the
62+
circumstances. The project team is obligated to maintain confidentiality with
63+
regard to the reporter of an incident. Further details of specific enforcement
64+
policies may be posted separately.
65+
66+
Project maintainers who do not follow or enforce the Code of Conduct in good
67+
faith may face temporary or permanent repercussions as determined by other
68+
members of the project's leadership.
69+
70+
## Attribution
71+
72+
This Code of Conduct is adapted from the [Contributor Covenant][homepage],
73+
version 1.4, available at
74+
https://www.contributor-covenant.org/version/1/4/code-of-conduct.html
75+
76+
For answers to common questions about this code of conduct, see
77+
https://www.contributor-covenant.org/faq
78+
79+
[homepage]: https://www.contributor-covenant.org

0 commit comments

Comments
 (0)