cloudflare/cloudflare-typescript

Public

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

CodeCommitsIssuesPull requestsActionsInsightsSecurity
generated

Branches

Tags

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

Clone

HTTPS

Download ZIP

.github/workflows/publish-npm.yml

32lines · 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
11jobs:
12 publish:
13 name: publish
14 runs-on: ubuntu-latest
15
16 steps:
17 - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
18
19 - name: Set up Node
20 uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
21 with:
22 node-version: '20'
23
24 - name: Install dependencies
25 run: |
26 yarn install
27
28 - name: Publish to NPM
29 run: |
30 bash ./bin/publish-npm
31 env:
32 NPM_TOKEN: ${{ secrets.CLOUDFLARE_NPM_TOKEN || secrets.NPM_TOKEN }}
33