Skip to content

Commit 891a2e9

Browse files
authored
Release openapi on push as dev tag (#177)
## Description This PR adds a workflow that will publish a new npm package with tag `dev` on each push to main. ## Motivation and Context We will need this for internal reasons. ## Types of changes - [ ] Bug fix (non-breaking change which fixes an issue) - [x] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
1 parent 10c920d commit 891a2e9

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/release-dev.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish Package to npmjs
2+
on:
3+
push:
4+
branches:
5+
- main
6+
jobs:
7+
publish-js-sdk:
8+
runs-on: ubuntu-latest
9+
permissions:
10+
contents: read
11+
id-token: write
12+
steps:
13+
- uses: actions/checkout@v4
14+
# Setup .npmrc file to publish to npm
15+
- uses: actions/setup-node@v4
16+
with:
17+
node-version: '20.x'
18+
registry-url: 'https://registry.npmjs.org'
19+
- run: yarn
20+
- run: yarn build
21+
- run: yarn npm publish --access public --tag dev
22+
working-directory: packages/js-server-sdk
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)