Tag release v0.3.0 #61
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Publish Apollo | |
on: | |
push: | |
tags: v[0-9]+.[0-9]+.[0-9]+* | |
jobs: | |
publish-npm: | |
name: Publish to NPM | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out | |
uses: actions/checkout@v4 | |
# Setup .npmrc file to publish to npm | |
- name: Use Node.js 18.x | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 18 | |
registry-url: https://registry.npmjs.org | |
scope: '@apollo-annotation' | |
cache: yarn | |
- name: Install | |
run: yarn --immutable | |
- name: Build shared | |
run: yarn build | |
working-directory: packages/apollo-shared | |
- name: Publish | |
run: | | |
yarn config set npmAuthToken ${{ secrets.NPM_TOKEN }} | |
yarn workspaces foreach --no-private --all npm publish --tolerate-republish | |
env: | |
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | |
publish-docker: | |
uses: ./.github/workflows/docker.yml | |
with: | |
tag: latest | |
secrets: inherit | |
deploy: | |
needs: [publish-docker] | |
uses: ./.github/workflows/deploy.yml | |
with: | |
environment: prod | |
secrets: inherit |