Skip to content

Commit

Permalink
Apply repository policies
Browse files Browse the repository at this point in the history
  • Loading branch information
dtinth-bot committed Oct 5, 2022
1 parent c14d3df commit f1961e6
Show file tree
Hide file tree
Showing 13 changed files with 2,180 additions and 2,207 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is automatically managed by <https://github.com/dtinth/jslibdevkit>.
# This file is automatically managed by <https://github.com/dtinth/repolicy>.
# Any manual changes to this file may be overwritten.

name: CI
Expand All @@ -19,9 +19,9 @@ jobs:
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2 # v2.0.1
uses: pnpm/action-setup@10693b3829bf86eb2572aef5f3571dcf5ca9287d # v2.2.2
with:
version: 6.26.0
version: 7.13.1
- name: Setup Node.js
uses: actions/setup-node@v2
with:
Expand All @@ -46,9 +46,9 @@ jobs:
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2 # v2.0.1
uses: pnpm/action-setup@10693b3829bf86eb2572aef5f3571dcf5ca9287d # v2.2.2
with:
version: 6.26.0
version: 7.13.1
- name: Setup Node.js
uses: actions/setup-node@v2
with:
Expand Down
35 changes: 14 additions & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# This file is automatically managed by <https://github.com/dtinth/jslibdevkit>.
# This file is automatically managed by <https://github.com/dtinth/repolicy>.
# Any manual changes to this file may be overwritten.

name: Publish
on:
push:
tags:
- '*'
branches:
- main
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
test:
release:
name: Release
runs-on: ubuntu-20.04
steps:
Expand All @@ -16,29 +17,21 @@ jobs:
with:
fetch-depth: 0
- name: Setup pnpm
uses: pnpm/action-setup@646cdf48217256a3d0b80361c5a50727664284f2 # v2.0.1
uses: pnpm/action-setup@10693b3829bf86eb2572aef5f3571dcf5ca9287d # v2.2.2
with:
version: 6.26.0
version: 7.13.1
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 16
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
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@2a025e8ab1cfa4312c2868cb6aa3cd3b473b84bf # v1.3.0
with:
token: ${{ secrets.NPM_TOKEN }}
access: public
tag: ${{ steps.get-tag.outputs.tag }}
publish: pnpm run release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is automatically managed by <https://github.com/dtinth/repolicy>.
# Any manual changes to this file may be overwritten.

/lib/
/lib-commonjs/
/dist/
Expand Down
3 changes: 3 additions & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
# This file is automatically managed by <https://github.com/dtinth/repolicy>.
# Any manual changes to this file may be overwritten.

/dist/
/etc/
/lib/
Expand Down
2 changes: 1 addition & 1 deletion .prettierrc.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# This file is automatically managed by <https://github.com/dtinth/jslibdevkit>.
# This file is automatically managed by <https://github.com/dtinth/repolicy>.
# Any manual changes to this file may be overwritten.

singleQuote: true
Expand Down
2 changes: 1 addition & 1 deletion config/api-extractor.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is automatically managed by <https://github.com/dtinth/jslibdevkit>.
// This file is automatically managed by <https://github.com/dtinth/repolicy>.
// Any manual changes to this file may be overwritten.

/**
Expand Down
2 changes: 1 addition & 1 deletion config/rig.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// This file is automatically managed by <https://github.com/dtinth/jslibdevkit>.
// This file is automatically managed by <https://github.com/dtinth/repolicy>.
// Any manual changes to this file may be overwritten.

{
Expand Down
6 changes: 6 additions & 0 deletions etc/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<!--
This file is automatically managed by <https://github.com/dtinth/repolicy>.
Any manual changes to this file may be overwritten.
-->

This directory contains a report file generated by [API Extractor](https://api-extractor.com/).
12 changes: 6 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@
"author": "Thai Pangsakulyanont <[email protected]> (http://dt.in.th/)",
"license": "MIT",
"devDependencies": {
"@changesets/cli": "2.20.0",
"@rushstack/heft": "0.44.2",
"@rushstack/heft-web-rig": "0.8.2",
"@types/heft-jest": "1.0.2",
"prettier": "2.5.1"
"@changesets/cli": "2.25.0",
"@rushstack/heft": "0.45.12",
"@rushstack/heft-web-rig": "0.10.15",
"@types/heft-jest": "1.0.3",
"prettier": "2.7.1"
},
"dependencies": {
"@types/gapi": "^0.0.41",
Expand All @@ -42,4 +42,4 @@
"bugs": {
"url": "https://github.com/dtinth/google-sign-in-controller#issues"
}
}
}
Loading

0 comments on commit f1961e6

Please sign in to comment.