We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c25ce9f commit d95a7d2Copy full SHA for d95a7d2
.github/workflows/publish.yml
@@ -10,6 +10,14 @@ jobs:
10
- uses: actions/setup-node@v4
11
with:
12
node-version: '22'
13
- - run: cd packages/gatsby-theme-iterative && yarn npm publish
+ - name: Publish package to npm
14
+ run: |
15
+ cd packages/gatsby-theme-iterative
16
+ VERSION=$(node -p "require('./package.json').version")
17
+ if [[ "$VERSION" == *"beta"* ]]; then
18
+ yarn npm publish --tag beta
19
+ else
20
+ yarn npm publish
21
+ fi
22
env:
23
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
0 commit comments