Prepare for moving to DefinitelyTyped org

This commit is contained in:
Andrew Branch
2020-03-05 16:00:48 -08:00
parent 70bc6b6a8c
commit f7d8963aac
12 changed files with 63 additions and 11 deletions

View File

@@ -13,7 +13,7 @@ jobs:
matrix:
node: [ '10', '12' ]
steps:
- uses: actions/checkout@v1
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node }}

23
.github/workflows/publish.yml vendored Normal file
View File

@@ -0,0 +1,23 @@
on:
release:
types: [created]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12.x
registry-url: https://npm.pkg.github.com
scope: '@definitelytyped'
- name: lint
run: npm run lint
- name: test
run: npm test
- name: version
run: lerna version ${{ GITHUB_REF }}
- name: publish
run: lerna publish from-git --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}