diff --git a/.github/workflows/release-swagger-ui-react.yml b/.github/workflows/release-swagger-ui-react.yml index fd7aa2ee..442322ff 100644 --- a/.github/workflows/release-swagger-ui-react.yml +++ b/.github/workflows/release-swagger-ui-react.yml @@ -27,20 +27,21 @@ jobs: with: fetch-depth: 0 persist-credentials: false - submodules: true ref: next - name: Setup Node.js uses: actions/setup-node@v3 with: node-version: 16 - registry-url: https://npm.pkg.github.com/ - scope: "@swagger-api" + + - name: Prepare SwaggerUI dist + run: | + cd ../../../ + npm ci + npm run build - name: Install dependencies (to create package manifest) run: npm ci - env: - NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }} - name: MKDIR `dist` working directory run: mkdir -p ../dist @@ -73,6 +74,6 @@ jobs: run: | cd ../dist pwd - npm publish . + npm pack . --tag alpha env: - NODE_AUTH_TOKEN: ${{ secrets.SWAGGER_BOT_GITHUB_TOKEN }} + NPM_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/.github/workflows/release-swagger-ui.yml b/.github/workflows/release-swagger-ui.yml index b2ccec0d..d55149df 100644 --- a/.github/workflows/release-swagger-ui.yml +++ b/.github/workflows/release-swagger-ui.yml @@ -43,6 +43,10 @@ jobs: - name: Install dependencies run: npm ci + - name: Prepare release + run: | + npm run build + - name: Semantic Release id: semantic uses: cycjimmy/semantic-release-action@v3