Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 3 additions & 30 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
@@ -1,50 +1,23 @@
name: Publish to NPM
on:
release:
types: [published]
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout 🛒
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}
- name: Setup Node ⚙️
uses: actions/setup-node@v4
with:
node-version: '20.x' # Todo use our .nvmrc instead
- name: Install dependencies and build 🔧
run: npm ci && npm run release
- name: Upload dist artifacts 📤
uses: actions/upload-artifact@v4
with:
name: dist
path: packages/graphiql-plugin-multipart-requests/dist/

publish:
needs: build
runs-on: ubuntu-latest
permissions:
id-token: write
contents: read
steps:
- name: Checkout 🛒
uses: actions/checkout@v4
with:
ref: ${{ github.event.release.tag_name }}
- name: Setup Node ⚙️
uses: actions/setup-node@v4
with:
node-version: '20.x' # Todo use our .nvmrc instead
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies 🔧
run: npm ci
- name: Download dist artifacts 📥
uses: actions/download-artifact@v4
with:
name: dist
path: packages/graphiql-plugin-multipart-requests/dist/
- name: Install dependencies and build 🔧
run: npm ci && npm run release
- name: Publish package on NPM 📦
run: npm run publish:npm
env:
Expand Down
Loading