-
Notifications
You must be signed in to change notification settings - Fork 6
45 lines (37 loc) Β· 1.27 KB
/
publish.yml
File metadata and controls
45 lines (37 loc) Β· 1.27 KB
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
35
36
37
38
39
40
41
42
43
44
45
name: π Publish Release
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: β¬οΈ Checkout
uses: actions/checkout@v3
- name: β Get Node version
id: node_version
run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT
- name: β Setup Node
uses: actions/setup-node@v3
with:
node-version: '${{ steps.node_version.outputs.NVMRC }}'
registry-url: 'https://registry.npmjs.org'
cache: yarn
- name: π¦ Install Dependencies
working-directory: remix-google-cloud-functions
run: yarn workspaces focus
- name: π Build Adapter
working-directory: remix-google-cloud-functions
run: yarn build
- name: π Publish Release
if: github.event.release.prerelease == false
working-directory: remix-google-cloud-functions
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.YARN_NPM_AUTH_TOKEN }}
run: yarn npm publish --tolerate-republish --access public
- name: π Publish Prerelease
if: github.event.release.prerelease
working-directory: remix-google-cloud-functions
env:
YARN_NPM_AUTH_TOKEN: ${{ secrets.YARN_NPM_AUTH_TOKEN }}
run: yarn npm publish --tolerate-republish --access public --tag next