-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (35 loc) · 1.07 KB
/
release.yaml
File metadata and controls
44 lines (35 loc) · 1.07 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
name: PublishStaging
on:
push:
branches:
- release
jobs:
build:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v2
# Setup .npmrc file to publish to GitHub Packages
- uses: actions/setup-node@v1
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
scope: "@dataplane"
# Defaults to the user or organization that owns the workflow file
- name: Automated Version Bump
uses: phips28/gh-action-bump-version@v8.0.12
with:
tag-prefix: ''
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- uses: actions/cache@v2
with:
path: '**/node_modules'
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
- name: YARN Install
run: yarn install
- name: NPM auth
run: npm config set '//registry.npmjs.org/:_authToken' "${{ secrets.NPMPUBLISH }}"
- name: YARN Build
run: yarn build
- name: YARN Publish
run: yarn publish --access public