Update workflows

This commit is contained in:
Andrew Branch
2020-04-09 11:14:14 -07:00
parent 952610d5f5
commit 557a94b358
2 changed files with 15 additions and 3 deletions

View File

@@ -21,10 +21,22 @@ jobs:
run: npm run lint
- name: test
run: npm test
- name: package
run: |
pushd packages/publisher
mkdir packed && cd $_
cp ../package.json ./
cp ../package-lock.json ./
cp ../tsconfig.json ./
cp ../server.js ./
cp ../IISNode.yml ./
cp -r ../dist ./
npm ci
popd
- name: deploy publisher
uses: azure/webapps-deploy@v1
with:
app-name: TypesPublisher
publish-profile: ${{ secrets.typesPublisherAzurePublishProfile }}
package: packages/publisher
package: packages/publisher/packed
slot-name: typespublisher

View File

@@ -12,6 +12,7 @@ jobs:
- uses: actions/setup-node@v1
with:
node-version: 12.x
registry-url: https://registry.npmjs.org
- name: configure git
run: |
git config user.email "typescriptbot@microsoft.com"
@@ -28,7 +29,6 @@ jobs:
tag=${ref:11} # 0.0.1
npx lerna version $tag --yes --tag-version-prefix=''
- 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 }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}