mirror of
https://github.com/chenasraf/DefinitelyTyped-tools.git
synced 2026-05-18 01:49:03 +00:00
Update workflows
This commit is contained in:
14
.github/workflows/deploy.yml
vendored
14
.github/workflows/deploy.yml
vendored
@@ -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
|
||||
4
.github/workflows/publish.yml
vendored
4
.github/workflows/publish.yml
vendored
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user