laconic-console/.github/workflows/main-publish.yml

44 lines
1.4 KiB
YAML
Raw Permalink Normal View History

2020-06-15 16:29:31 +00:00
# This workflow will do a clean install of node dependencies, build the source code and run tests across different versions of node
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-nodejs-with-github-actions
2020-11-16 21:57:09 +00:00
name: alpha - Build and Publish
2020-06-15 16:29:31 +00:00
on:
push:
branches: [ main ]
2020-06-15 16:29:31 +00:00
jobs:
test:
2020-06-15 16:29:31 +00:00
runs-on: ubuntu-latest
2020-12-03 20:23:11 +00:00
timeout-minutes: 15
2020-06-15 16:29:31 +00:00
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 12
registry-url: https://registry.npmjs.org/
- name: Test and build
2020-06-15 16:29:31 +00:00
run: |
# git config --global user.email "npm@dxos.org"
# git config --global user.name "DXOS"
2020-06-15 16:29:31 +00:00
yarn install
yarn lint
yarn test
yarn build
2020-06-15 16:29:31 +00:00
# Uncomment for NPM publishing.
# npm whoami
# yarn lerna publish -y prerelease --dist-tag="alpha" --force-publish
2020-06-15 16:29:31 +00:00
# Publish to WNS
# yarn wire profile init --name $WIRE_PROFILE --template-url "$WIRE_PROFILE_URL"
# export PKG_CHANNEL="@alpha"
# scripts/deploy_apps_to_wns.sh
2020-06-15 16:29:31 +00:00
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
WIRE_WNS_USER_KEY: ${{secrets.wns_user_key}}
WIRE_WNS_BOND_ID: ${{secrets.wns_bond_id}}
2020-11-30 17:19:06 +00:00
WIRE_PROFILE_URL: ${{secrets.wire_profile_url}}
2020-06-15 16:29:31 +00:00
WIRE_PROFILE: ci