Prep for publisher deployment attempt

This commit is contained in:
Andrew Branch
2020-04-03 13:51:55 -07:00
parent 150f3c3cb5
commit 4fd82d934e
3 changed files with 31 additions and 3 deletions

28
.github/workflows/deploy.yml vendored Normal file
View File

@@ -0,0 +1,28 @@
on:
issue_comment:
types: [created]
jobs:
deploy:
if: |
github.event.issue.number == 1
&& github.event.comment.user.login == 'andrewbranch'
&& startsWith(github.event.comment.body, '/deploy publisher')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
ref: master
- uses: actions/setup-node@v1
with:
node-version: 12.x
- name: install
run: npm ci
- name: lint
run: npm run lint
- name: test
run: npm test
- name: deploy publisher
uses: azure/webapps-deploy@v1
with:
app-name: TypesPublisher
publish-profile: ${{ secrets.typesPublisherAzurePublishProfile }}

View File

@@ -12,8 +12,6 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12.x
registry-url: https://npm.pkg.github.com
scope: '@definitelytyped'
- name: configure git
run: |
git config user.email "typescriptbot@microsoft.com"
@@ -29,7 +27,8 @@ jobs:
ref=${{ github.ref }} # refs/tags/v0.0.1
tag=${ref:11} # 0.0.1
npx lerna version $tag --yes --tag-version-prefix=''
- name: publish
- name: publish to npm
if: ${{ false }} # disable for now
run: npx lerna publish from-git --yes --tag-version-prefix='' --no-verify-access
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -1,5 +1,6 @@
{
"name": "@definitelytyped/publisher",
"private": true,
"version": "0.0.16",
"main": "dist/index.js",
"types": "dist/index.d.ts",