-
Notifications
You must be signed in to change notification settings - Fork 211
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
15 changed files
with
189 additions
and
97 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
name: Publish packages | ||
on: | ||
workflow_call: | ||
inputs: | ||
dry-run: | ||
type: boolean | ||
workflow_dispatch: | ||
inputs: | ||
dry-run: | ||
type: boolean | ||
jobs: | ||
publish-packages: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: yarn | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn build | ||
- name: Parse declarations | ||
run: yarn workspace @definitelytyped/publisher parse | ||
- uses: actions/cache@v3 | ||
with: | ||
path: packages/utils/cache/ | ||
key: cache-${{ github.run_id }} | ||
restore-keys: cache- | ||
- name: Calculate versions | ||
run: yarn workspace @definitelytyped/publisher calculate-versions | ||
- name: Generate packages | ||
run: yarn workspace @definitelytyped/publisher generate | ||
- name: Publish packages${{ (inputs || github.event.inputs).dry-run && ' dry run' || '' }} | ||
run: yarn workspace @definitelytyped/publisher publish-packages${{ (inputs || github.event.inputs).dry-run && ' --dry' || '' }} | ||
env: | ||
GH_API_TOKEN: ${{ secrets.GH_API_TOKEN }} | ||
NPM_TOKEN: ${{ secrets.NPM_RETAG_TOKEN }} | ||
- if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ github.job }} | ||
path: packages/definitions-parser/data/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
name: Publish registry | ||
on: | ||
workflow_call: | ||
inputs: | ||
dry-run: | ||
type: boolean | ||
workflow_dispatch: | ||
inputs: | ||
dry-run: | ||
type: boolean | ||
jobs: | ||
publish-registry: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: yarn | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn build | ||
- name: Parse declarations | ||
run: yarn workspace @definitelytyped/publisher parse | ||
- uses: actions/cache@v3 | ||
with: | ||
path: packages/utils/cache/ | ||
key: cache-${{ github.run_id }} | ||
restore-keys: cache- | ||
- name: Publish registry${{ (inputs || github.event.inputs).dry-run && ' dry run' || '' }} | ||
run: yarn workspace @definitelytyped/publisher publish-registry${{ (inputs || github.event.inputs).dry-run && ' --dry' || '' }} | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_RETAG_TOKEN }} | ||
- if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ github.job }} | ||
path: packages/definitions-parser/data/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Update npm tags | ||
on: | ||
schedule: | ||
# https://crontab.guru/#0_0_*_*_0 | ||
- cron: 0 0 * * 0 | ||
workflow_call: | ||
inputs: | ||
dry-run: | ||
type: boolean | ||
workflow_dispatch: | ||
inputs: | ||
dry-run: | ||
type: boolean | ||
jobs: | ||
retag: | ||
if: github.event_name != 'schedule' || github.repository == 'microsoft/DefinitelyTyped-tools' | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-node@v3 | ||
with: | ||
cache: yarn | ||
- run: yarn install --frozen-lockfile | ||
- run: yarn build | ||
- uses: actions/cache@v3 | ||
with: | ||
path: packages/utils/cache/ | ||
key: cache-${{ github.run_id }} | ||
restore-keys: cache- | ||
- name: Update npm tags${{ (inputs || github.event.inputs).dry-run && ' dry run' || '' }} | ||
run: yarn retag${{ (inputs || github.event.inputs).dry-run && ' --dry' || '' }} | ||
env: | ||
NPM_TOKEN: ${{ secrets.NPM_RETAG_TOKEN }} | ||
- if: always() | ||
uses: actions/upload-artifact@v3 | ||
with: | ||
name: ${{ github.job }} | ||
path: packages/definitions-parser/data/ |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.