-
Notifications
You must be signed in to change notification settings - Fork 0
34 lines (29 loc) · 921 Bytes
/
publish-npm.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
name: Publish Package to npmjs
on:
pull_request:
branches:
- main
- feat/speed-up-clone-command
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
# Change directory to packages/create-universal-app
- name: Change directory to package
run: cd packages/create-universal-app
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v4
with:
node-version: "18.18.2"
registry-url: "https://registry.npmjs.org"
- run: yarn install
- name: Semantic Release
run: npx semantic-release
# Change directory back to the root of the repository
- name: Change directory back to root
run: cd ../..
# Publish the create-universal-app package
- run: npm publish ./packages/create-universal-app
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}