-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from Yoonit-Labs/development
Merging development into main
- Loading branch information
Showing
17 changed files
with
26,312 additions
and
26,239 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
name: deploy | ||
|
||
on: | ||
release: | ||
types: [ created ] | ||
|
||
jobs: | ||
deploy: | ||
if: ${{ contains(github.ref, 'refs/tags/release-') }} | ||
runs-on: ubuntu-latest | ||
steps: | ||
# GET TAG VERSION & RELEASE_VERSION IN $GITHUB_ENV | ||
- name: Get TAG_VERSION & RELEASE_VERSION | ||
run: | | ||
echo "TAG_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV | ||
echo "RELEASE_VERSION=${GITHUB_REF#refs/*/release-}" >> $GITHUB_ENV | ||
# CHECKOUT REPOSITORY | ||
- name: Checkout Repository | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: master | ||
# SETUP NODE ENV W/ NPM PUBLIC REGISTRY | ||
- name: Setup Node Env | ||
uses: actions/setup-node@v2 | ||
with: | ||
registry-url: 'https://registry.npmjs.org' | ||
# CONFIGURE GIT | ||
- name: Configure Git | ||
run: | | ||
git config user.name github-ci | ||
git config user.email [email protected] | ||
# RUN SCRIPTS | ||
- name: Update package version | ||
run: node -e "let pkg=require('./package.json'); pkg.version='${{ env.RELEASE_VERSION }}'; require('fs').writeFileSync('./package.json', JSON.stringify(pkg, null, 2));" | ||
- name: Build Package | ||
run: | | ||
npm install | ||
npm run build | ||
# PUBLISH VUE PACKAGE | ||
- name: Publish VueJS Package | ||
run: npm publish --access public | ||
env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
# ADD & COMMIT CHANGES | ||
- name: Add & Commit Changes | ||
run: | | ||
git add . | ||
git commit -am "[github-ci] Published Version" | ||
git push origin main:npm --force | ||
# TAG VERSION | ||
- name: Tag Version | ||
run: | | ||
git tag -a ${{ env.TAG_VERSION }} -m ${{ env.TAG_VERSION }} --force | ||
git push --tags --force | ||
# SUCCESS MESSAGE TO DISCORD | ||
- name: Success Message to Discord | ||
uses: sarisia/actions-status-discord@v1 | ||
with: | ||
webhook: ${{ secrets.WEBHOOK_URL }} | ||
title: "Published @yoonit/rxjs-yoonit-store v${{ env.RELEASE_VERSION }}" | ||
description: | | ||
A new release has been published: | ||
[Click here to go to the release page](https://github.com/Yoonit-Labs/rxjs-yoonit-store/releases/tag/${{ env.TAG_VERSION }}) | ||
color: 0x00ff00 | ||
username: GitHub Actions |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: run_test:unit | ||
|
||
on: [push, workflow_dispatch] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
strategy: | ||
matrix: | ||
node-version: [10.x] | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Use Node.js ${{ matrix.node-version }} | ||
uses: actions/setup-node@v1 | ||
with: | ||
node-version: ${{ matrix.node-version }} | ||
- run: npm install | ||
- run: npm run test:unit |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.