mirror of
https://github.com/chenasraf/DefinitelyTyped-tools.git
synced 2026-05-18 01:49:03 +00:00
Prep for publisher deployment attempt
This commit is contained in:
28
.github/workflows/deploy.yml
vendored
Normal file
28
.github/workflows/deploy.yml
vendored
Normal 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 }}
|
||||
5
.github/workflows/publish.yml
vendored
5
.github/workflows/publish.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user