-
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
10 changed files
with
125 additions
and
50 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,42 @@ | ||
name: Publish packages | ||
#description: Find changed @types packages in the DT repo and publish them to npm. | ||
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: ${{ github.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
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,39 @@ | ||
name: Update npm tags | ||
#description: Refresh tags on all DT-published packages in the @types scope. | ||
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