generated from apollographql/typescript-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
80d523f
commit e71848a
Showing
4 changed files
with
98 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
name: Release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
env: | ||
NODE_VERSION: 16.x | ||
|
||
jobs: | ||
build: | ||
name: 🛠️ Build | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
name: Checkout | ||
|
||
- name: Setup Node.js ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Build | ||
run: npm run build | ||
|
||
test: | ||
name: 🧪 Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
name: Checkout | ||
|
||
- name: Setup Node.js ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Test | ||
run: npm run test:ci | ||
|
||
lint: | ||
name: 🔗 Lint | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
name: Checkout | ||
|
||
- name: Setup Node.js ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Install Dependencies | ||
run: npm ci | ||
|
||
- name: Prettier check | ||
run: npm run prettier-check | ||
|
||
- name: Spellcheck | ||
run: npm run spell-check | ||
|
||
release: | ||
name: 🚢 Release | ||
runs-on: ubuntu-latest | ||
needs: [build, test, lint] | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits | ||
fetch-depth: 0 | ||
|
||
- name: Setup Node.js ${{ env.NODE_VERSION }} | ||
uses: actions/setup-node@v3 | ||
with: | ||
node-version: ${{ env.NODE_VERSION }} | ||
|
||
- name: Install Dependencies | ||
run: npm i | ||
|
||
- name: Create Release Pull Request / NPM Publish | ||
uses: changesets/action@v1 | ||
with: | ||
publish: npm run publish-changeset | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "@as-integrations/azure-functions", | ||
"description": "An integration for Apollo Server on Azure Functions", | ||
"version": "0.0.0", | ||
"version": "0.1.0", | ||
"author": "Apollo <[email protected]>", | ||
"license": "MIT", | ||
"repository": { | ||
|
@@ -24,7 +24,7 @@ | |
"prepack": "npm run build", | ||
"prettier-check": "prettier --check .", | ||
"prettier-fix": "prettier --write .", | ||
"publish-changeset": "changeset publish", | ||
"publish-changeset": "npm run build && changeset publish", | ||
"spell-check": "cspell lint '**' --no-progress || (echo 'Add any real words to cspell-dict.txt.'; exit 1)", | ||
"test": "jest", | ||
"test:ci": "jest --coverage --ci --maxWorkers=2 --reporters=default --reporters=jest-junit", | ||
|