Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Test publish #1190

Merged
merged 12 commits into from Aug 12, 2019
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
34 changes: 8 additions & 26 deletions .github/workflows/ci.yml
@@ -1,31 +1,13 @@
name: CI
on: [push, pull_request]
on: pull_request
jobs:
build_test_and_deploy:
name: Build, Test and Deploy if needed
name: Build & Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@master
- name: Use yarn
uses: nuxt/actions-yarn@97f98f200b7fd42a001f88e7bdfc14d64d695ab2
- name: Install
run: yarn install
- name: Build
run: |
yarn run build:icons
yarn run build:package
- name: Test
run: yarn test:unit
- name: Use branch filter
uses: actions/bin/filter@master
with:
branch: master
- name: Use npm client
if: github.head_ref == 'master'
uses: actions/npm@master
- name: Publish to npm@next
if: github.head_ref == 'master'
run: |
npm version $(npm show . version)-$(git rev-parse --short HEAD) --no-git-tag-version --unsafe-perm
yarn publish --tag next
- uses: actions/checkout@master
- uses: nuxt/actions-yarn@97f98f200b7fd42a001f88e7bdfc14d64d695ab2
- run: yarn install
- run: yarn run build:icons
- run: yarn run build:package
- run: yarn test:unit
20 changes: 20 additions & 0 deletions .github/workflows/master.yml
@@ -0,0 +1,20 @@
name: Master Pipeline
on:
push:
branches:
- master
jobs:
build_test_and_deploy:
name: Build, Test and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: nuxt/actions-yarn@97f98f200b7fd42a001f88e7bdfc14d64d695ab2
- run: yarn install
- run: yarn test:unit
- uses: actions/npm@master
- run: yarn build:icons
TejasQ marked this conversation as resolved.
Show resolved Hide resolved
- run: npm version $(npm show . version)-$(git rev-parse --short HEAD) --no-git-tag-version --unsafe-perm
- run: yarn publish --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}