cloudflare/cloudflare-typescript

Public

mirrored from https://github.com/cloudflare/cloudflare-typescriptAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
dff22c0d60c46292be06ba3061c6433db22d6b27

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/publish-npm.yml

35lines · modecode

1# This workflow is triggered when a GitHub release is created.
2# It can also be run manually to re-publish to NPM in case it failed for some reason.
3# You can run this workflow by navigating to https://www.github.com/cloudflare/cloudflare-typescript/actions/workflows/publish-npm.yml
4name: Publish NPM
5on:
6 workflow_dispatch:
7
8 release:
9 types: [published]
10
11permissions:
12 id-token: write # required for OIDC
13
14jobs:
15 publish:
16 name: publish
17 runs-on: ubuntu-latest
18
19 steps:
20 - uses: actions/checkout@v4
21
22 - name: Set up Node
23 uses: actions/setup-node@v3
24 with:
25 node-version: '20'
26
27 - name: Install dependencies
28 run: |
29 yarn install
30
31 - name: Publish to NPM
32 run: |
33 bash ./bin/publish-npm
34 env:
35 NPM_TOKEN: ${{ secrets.CLOUDFLARE_NPM_TOKEN || secrets.NPM_TOKEN }}
36