Skip to content
This repository was archived by the owner on Feb 7, 2023. It is now read-only.

Commit b17d066

Browse files
author
Jacob
committed
CI/CD Improvements:
- Added Changeset PR creation & publish Workflows - Added Typechecking workflow - Consolidated old workflows as jobs in new workflows removed build from Testing CI/CD
1 parent 70c8f18 commit b17d066

9 files changed

+4683
-116
lines changed

.changeset/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Changesets
2+
3+
Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
4+
with multi-package repos, or single-package repos to help you version and publish your code. You can
5+
find the full documentation for it [in our repository](https://github.com/changesets/changesets)
6+
7+
We have a quick list of common questions to get you started engaging with this project in
8+
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)

.changeset/config.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
3+
"changelog": "@changesets/cli/changelog",
4+
"commit": false,
5+
"linked": [],
6+
"access": "restricted",
7+
"baseBranch": "master",
8+
"updateInternalDependencies": "patch",
9+
"ignore": []
10+
}

.changeset/proud-ways-argue.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
---
2+
"@cloudflare/workers-types": patch
3+
---
4+
5+
CI/CD Improvements:
6+
7+
- Added Changeset PR creation & publish Workflows
8+
- Added Typechecking workflow
9+
- Consolidated old workflows as jobs in new workflows
10+
- Added configuration for Changeset CLI
11+
- Installing Changeset bot for non-blocking PR support

.github/workflows/lint.yml

-15
This file was deleted.

.github/workflows/overrides.yml

-18
This file was deleted.

.github/workflows/release.yml

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
2+
name: Release
3+
4+
on:
5+
pull_request:
6+
types: [closed]
7+
8+
jobs:
9+
documentation:
10+
if: ${{ github.event.pull_request.merged == true }}
11+
name: Check Docs & Overrides
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v2
15+
- name: Setup Node.js 16.7
16+
uses: actions/setup-node@v2
17+
with:
18+
node-version: 16.7
19+
20+
- name: Install NPM
21+
run: npm install
22+
23+
- name: Check Docs
24+
run: npm run export:docs
25+
- name: Check Overrides
26+
run: npm run export:overrides
27+
28+
release:
29+
if: ${{ github.event.pull_request.merged == true }}
30+
needs: [documentation]
31+
name: Release
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Checkout Repo
35+
uses: actions/checkout@v2
36+
with:
37+
fetch-depth: 0
38+
39+
- name: Setup Node.js 16.7
40+
uses: actions/setup-node@v2
41+
with:
42+
node-version: 16.7
43+
44+
- name: Install NPM
45+
run: npm install
46+
47+
- name: Publish to NPM
48+
id: changesets
49+
uses: changesets/action@v1
50+
with:
51+
publish: npx changeset publish
52+
env:
53+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
NPM_PUBLISH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

.github/workflows/typechecks.yml

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
name: Tests, Linter & Typecheck
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
pull_request:
8+
types:
9+
- opened
10+
11+
jobs:
12+
lint:
13+
name: 'Linting Markdown: ${{ matrix.os }} (node@${{ matrix.node_version }})'
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ubuntu-latest]
18+
node_version: [16.7]
19+
fail-fast: false
20+
steps:
21+
- uses: actions/checkout@v2
22+
- name: Setup Node.js 16.7
23+
uses: actions/setup-node@v2
24+
with:
25+
node-version: 16.7
26+
- run: npm install -g [email protected]
27+
- run: markdownlint '**/*.md' --ignore node_modules
28+
test:
29+
name: 'Typechecking: ${{ matrix.os }} (node@${{ matrix.node_version }})'
30+
runs-on: ${{ matrix.os }}
31+
strategy:
32+
matrix:
33+
os: [ubuntu-latest]
34+
node_version: [16.7]
35+
fail-fast: false
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v2
39+
40+
- uses: actions/cache@v2
41+
with:
42+
path: ~/.npm
43+
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
44+
restore-keys: |
45+
${{ runner.os }}-node-
46+
47+
- name: Install NPM dependencies
48+
run: npm install
49+
50+
- name: Run Type Checking
51+
#TODO remove the --skipLibCheck flag at some point
52+
run: tsc

0 commit comments

Comments
 (0)