cloudflare/cloudflare-typescript

Public

mirrored fromhttps://github.com/cloudflare/cloudflare-typescriptAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
v6.3.0

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 contents: write
14
15jobs:
16 publish:
17 name: publish
18 runs-on: ubuntu-latest
19
20 steps:
21 - uses: actions/checkout@v6
22
23 - name: Set up Node
24 uses: actions/setup-node@v3
25 with:
26 node-version: '24'
27 registry-url: 'https://registry.npmjs.org'
28
29 - name: Install dependencies
30 run: |
31 yarn install
32
33 - name: Publish to NPM
34 run: |
35 bash ./bin/publish-npm
36