Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apply repository policies #2

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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/).
10 changes: 5 additions & 5 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 Down
Loading