Преглед изворни кода

fixup! tools: add manual CDN upload action

Antoine du Hamel пре 3 година
родитељ
комит
fd8061f715
1 измењених фајлова са 18 додато и 2 уклоњено
  1. 18 2
      .github/workflows/manual-cdn.yml

+ 18 - 2
.github/workflows/manual-cdn.yml

@@ -3,14 +3,30 @@ on:
   workflow_dispatch:
     inputs:
       name:
-        description: 'Package to upload'
+        description: "Package to upload"
         required: true
-        default: 'uppy'
+        default: "uppy"
 
 jobs:
   upload:
     runs-on: ubuntu-latest
     steps:
+      - name: Checkout sources
+        uses: actions/checkout@v2
+      - name: Cache npm dependencies
+        id: cache-npm-libraries
+        uses: actions/cache@v2
+        with:
+          path: .yarn/cache/*
+          key: ${{ runner.os }}
+      - name: Install Node.js
+        uses: actions/setup-node@v2
+        with:
+          node-version: 16.x
+      - name: Install dependencies
+        run: corepack yarn install
+      - name: Build before publishing
+        run: corepack yarn run build
       - name: Upload `${{ github.event.inputs.name }}` to CDN
         run: corepack yarn run uploadcdn ${{ github.event.inputs.name }}
         env: