forked from pnp/sp-dev-fx-property-controls
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (30 loc) · 877 Bytes
/
dev-release.yml
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
name: BETA Release
on:
push:
branches:
- dev
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 14
registry-url: https://registry.npmjs.org/
- name: Install npm dependencies
run: npm i
- name: Update the package version
if: github.ref == 'refs/heads/dev'
run: node scripts/update-package-version.js $GITHUB_RUN_ID
- name: Update version number for telemetry
run: npm run versionUpdater
- name: Create/update the missing localization keys
run: npm run localization
- name: Run build
run: npm run build
- name: Publish beta release
run: npm publish --tag next --access public
if: github.ref == 'refs/heads/dev'
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_PUBLISH_TOKEN}}