Skip to content

Commit

Permalink
Merge pull request #1 from dtinth/jslibdevkit-maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
dtinth authored Jan 25, 2022
2 parents de368fe + c83a373 commit c14d3df
Show file tree
Hide file tree
Showing 9 changed files with 1,047 additions and 2,188 deletions.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
10 changes: 10 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": "@changesets/cli/changelog",
"commit": false,
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
1 change: 1 addition & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ jobs:
run: pnpm run test
- name: SonarCloud Scan
uses: SonarSource/sonarcloud-github-action@master
if: env.SONAR_TOKEN
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
Expand Down
11 changes: 11 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,19 @@ jobs:
cache: pnpm
- name: Install dependencies and build
run: pnpm install --prefer-offline
- name: Get tag for npm publish
id: get-tag
run: |
if [ -f .changeset/pre.json ]; then
TAG=$(jq -r '.tag' .changeset/pre.json)
else
TAG=latest
fi
echo "$TAG"
echo "::set-output name=tag::$TAG"
- name: Publish to npm
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
tag: ${{ steps.get-tag.outputs.tag }}
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,5 @@
/lib-commonjs/
pnpm-lock.yaml
CHANGELOG.md
/temp/
/temp/
/.changeset/
13 changes: 0 additions & 13 deletions .release-it.yml

This file was deleted.

19 changes: 10 additions & 9 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,29 +16,30 @@
"test": "heft test",
"prepare": "heft build && ./scripts/generate-api-docs",
"api": "./scripts/generate-api-docs",
"release": "release-it",
"release": "./scripts/release",
"format": "prettier --write ."
},
"author": "Thai Pangsakulyanont <[email protected]> (http://dt.in.th/)",
"license": "MIT",
"devDependencies": {
"@microsoft/api-documenter": "7.14.1",
"@changesets/cli": "2.20.0",
"@rushstack/heft": "0.44.2",
"@rushstack/heft-web-rig": "0.7.2",
"@spacet.me/news-fragments": "1.15.2-1",
"@rushstack/heft-web-rig": "0.8.2",
"@types/heft-jest": "1.0.2",
"api-documenter-yaml-to-antora-asciidoc": "0.0.0-11",
"prettier": "2.5.1",
"release-it": "15.0.0-esm.3"
"prettier": "2.5.1"
},
"dependencies": {
"@types/gapi": "^0.0.41",
"@types/gapi.auth2": "^0.0.55",
"p-memoize": "^5.0.0"
"p-memoize": "^5.0.1"
},
"repository": {
"type": "git",
"url": "https://github.com/dtinth/google-sign-in-controller.git"
},
"docModel": "./dist/google-sign-in-controller.api.json"
"docModel": "./dist/google-sign-in-controller.api.json",
"homepage": "https://github.com/dtinth/google-sign-in-controller#readme",
"bugs": {
"url": "https://github.com/dtinth/google-sign-in-controller#issues"
}
}
Loading

0 comments on commit c14d3df

Please sign in to comment.