Skip to content

Commit 927f8e9

Browse files
chore: update to github actions and npm trusted publishing (#2800)
* chore: add gha workflows * chore: add test projects workflow * chore: remove postbuild from scripts * chore: remove space id from secrets * chore: skipping demo projects * chore: add maxworkers to vitest config * chore: removing coverage * chore: fixing yaml * chore: change to kick off build * chore: update vault secrets * chore: add demo projects back into test * chore: install chrome for demo projects * chore: install chrome driver * chore: start puppeteer in no sandbox mode * chore: format fix * chore: does it work without installing chrome? * chore: remove circle config * fix: fix typo to test release * chore: temp remove vault access * chore: putting vault access back in * chore: update refs release runs from * chore: fix scheduled action bad request test --------- Co-authored-by: Ely Lucas <ely.lucas@contentful.com>
1 parent d21fbe9 commit 927f8e9

21 files changed

+2363
-1498
lines changed

.circleci/config.yml

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

.contentful/vault-secrets.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,3 @@ services:
55
- dependabot
66
- semantic-release
77
- packages-read
8-
circleci:
9-
policies:
10-
- semantic-release-ecosystem
11-
- packages-read
Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
---
2+
name: Bug Report
3+
about: Create a report to help us improve
4+
title: '[BUG] '
5+
labels: bug
6+
assignees: ''
7+
---
8+
9+
## Bug Description
10+
11+
A clear and concise description of what the bug is.
12+
13+
## Steps to Reproduce
14+
15+
1. Go to '...'
16+
2. Execute '...'
17+
3. See error
18+
19+
## Expected Behavior
20+
21+
A clear and concise description of what you expected to happen.
22+
23+
## Actual Behavior
24+
25+
A clear and concise description of what actually happened.
26+
27+
## Code Sample
28+
29+
```javascript
30+
// Minimal code to reproduce the issue
31+
```
32+
33+
## Environment
34+
35+
- OS: [e.g. macOS 13.0, Windows 11, Ubuntu 22.04]
36+
- Package Version: [e.g. 1.2.3]
37+
- Node Version: [e.g. 18.0.0]
38+
- Package Manager: [e.g. npm 9.0.0, yarn 1.22.0]
39+
40+
## Error Messages/Logs
41+
42+
```
43+
Paste any error messages or relevant logs here
44+
```
45+
46+
## Screenshots
47+
48+
If applicable, add screenshots to help explain your problem.
49+
50+
## Additional Context
51+
52+
Add any other context about the problem here.
53+
54+
## Possible Solution
55+
56+
If you have suggestions on how to fix the bug, please describe them here.

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
blank_issues_enabled: true
2+
contact_links:
3+
- name: Question or Discussion
4+
url: https://github.com/contentful/contentful-management/discussions
5+
about: Ask questions or discuss ideas with the community
6+
- name: Documentation
7+
url: https://www.contentful.com/developers/docs/references/content-management-api/
8+
about: Check out our documentation for help and guides
9+
- name: Security Vulnerability
10+
url: https://github.com/contentful/contentful-management/security/advisories/new
11+
about: Report a security vulnerability privately
Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
---
2+
name: Feature Request
3+
about: Suggest an idea for this project
4+
title: '[FEATURE] '
5+
labels: enhancement
6+
assignees: ''
7+
---
8+
9+
## Feature Description
10+
11+
A clear and concise description of the feature you'd like to see.
12+
13+
## Problem Statement
14+
15+
Is your feature request related to a problem? Please describe.
16+
Example: I'm always frustrated when [...]
17+
18+
## Proposed Solution
19+
20+
A clear and concise description of what you want to happen.
21+
22+
## Use Case
23+
24+
Describe the use case for this feature. How would you use it?
25+
26+
```javascript
27+
// Example of how the feature would be used
28+
const example = new Feature({
29+
option: 'value',
30+
});
31+
```
32+
33+
## Alternatives Considered
34+
35+
A clear and concise description of any alternative solutions or features you've considered.
36+
37+
## Benefits
38+
39+
What are the benefits of implementing this feature?
40+
41+
- Benefit 1
42+
- Benefit 2
43+
- Benefit 3
44+
45+
## Potential Drawbacks
46+
47+
Are there any potential drawbacks or challenges with this feature?
48+
49+
## Additional Context
50+
51+
Add any other context, screenshots, or examples about the feature request here.
52+
53+
## Implementation Suggestions
54+
55+
If you have ideas about how this could be implemented, please share them here.
56+
57+
## Priority
58+
59+
How important is this feature to you?
60+
61+
- [ ] Critical - Blocking my usage
62+
- [ ] High - Important for my use case
63+
- [ ] Medium - Would be nice to have
64+
- [ ] Low - Just a suggestion
65+
66+
## Willingness to Contribute
67+
68+
- [ ] I'd be willing to submit a PR for this feature
69+
- [ ] I can help test this feature
70+
- [ ] I can help with documentation

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!--
22
Thank you for opening a pull request.
33
4-
Please fill in as much of the template below as you're able. Feel free to delete
4+
Please fill in as much of the template below as you're able. Feel free to remove
55
any section you want to skip.
66
-->
77

@@ -20,16 +20,10 @@ Why is this change required? What problem does it solve?
2020
If it fixes an open issue, please link to the issue here.
2121
-->
2222

23-
## Checklist (check all before merging)
23+
## PR Checklist
2424

25-
- [ ] Both unit and integration tests are passing
25+
- [ ] I have read the `CONTRIBUTING.md` file
26+
- [ ] All commits follow [conventional commits](https://www.conventionalcommits.org/en/v1.0.0/)
27+
- [ ] Documentation is updated (if necessary)
28+
- [ ] PR doesn't contain any sensitive information
2629
- [ ] There are no breaking changes
27-
- [ ] Changes are reflected in the documentation
28-
29-
When adding a new method:
30-
31-
- [ ] The new method is exported through the default and plain CMA client
32-
- [ ] All new public types are exported from `./lib/export-types.ts`
33-
- [ ] Added a unit test for the new method
34-
- [ ] Added an integration test for the new method
35-
- [ ] The new method is added to the documentation

.github/dependabot.yml

Lines changed: 12 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,19 @@
11
version: 2
2-
registries:
3-
npm-github:
4-
type: npm-registry
5-
url: https://npm.pkg.github.com
6-
token: ${{secrets.NPM_REGISTRY_REGISTRY_GH_ORG_TOKEN}}
72
updates:
8-
- package-ecosystem: npm
9-
versioning-strategy: lockfile-only
10-
registries:
11-
- npm-github
12-
directory: "/"
3+
# Enable version updates for npm
4+
- package-ecosystem: 'npm'
5+
directory: '/'
136
schedule:
14-
interval: daily
15-
time: "00:00"
16-
timezone: UTC
7+
interval: 'weekly'
8+
day: 'monday'
179
open-pull-requests-limit: 10
10+
reviewers:
11+
- 'contentful/team-developer-experience'
12+
labels:
13+
- 'dependencies'
14+
commit-message:
15+
prefix: 'chore'
16+
include: 'scope'
1817
ignore:
1918
- dependency-name: husky
2019
versions:
@@ -25,27 +24,3 @@ updates:
2524
- dependency-name: webpack
2625
versions:
2726
- '>= 5.0.0'
28-
# requires node@18
29-
- dependency-name: semantic-release
30-
versions:
31-
- '>= 20.0.0'
32-
commit-message:
33-
prefix: build
34-
include: scope
35-
groups:
36-
production-dependencies:
37-
applies-to: version-updates
38-
dependency-type: production
39-
update-types:
40-
- minor
41-
- patch
42-
patterns:
43-
- '*'
44-
dev-dependencies:
45-
applies-to: version-updates
46-
dependency-type: development
47-
update-types:
48-
- minor
49-
- patch
50-
patterns:
51-
- '*'

0 commit comments

Comments
 (0)