Skip to content

Commit

Permalink
fix: update
Browse files Browse the repository at this point in the history
  • Loading branch information
frankpagan committed May 22, 2021
1 parent 93e4d3a commit 833798d
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 48 deletions.
94 changes: 47 additions & 47 deletions .github/workflows/automation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,30 +14,30 @@ jobs:
with:
direction: overwrite-github
githubToken: '${{ secrets.GITHUB }}'
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v2
id: semantic
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/npm
@semantic-release/git
@semantic-release/github
env:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'
outputs:
new_release_published: '${{ steps.semantic.outputs.new_release_published }}'
new_release_version: '${{ steps.semantic.outputs.new_release_version }}'
# release:
# runs-on: ubuntu-latest
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# - name: Semantic Release
# uses: cycjimmy/semantic-release-action@v2
# id: semantic
# with:
# extra_plugins: |
# @semantic-release/changelog
# @semantic-release/npm
# @semantic-release/git
# @semantic-release/github
# env:
# GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
# NPM_TOKEN: '${{ secrets.NPM_TOKEN }}'
# outputs:
# new_release_published: '${{ steps.semantic.outputs.new_release_published }}'
# new_release_version: '${{ steps.semantic.outputs.new_release_version }}'
cdn:
runs-on: ubuntu-latest
needs: release
if: needs.release.outputs.new_release_published == 'true'
# needs: release
# if: needs.release.outputs.new_release_published == 'true'
env:
VERSION: '${{ needs.release.outputs.new_release_version }}'
steps:
Expand Down Expand Up @@ -75,29 +75,29 @@ jobs:
destination: /latest
acl: public-read
invalidations: true
dist:
runs-on: ubuntu-latest
needs: release
if: needs.release.outputs.new_release_published
steps:
- name: Checkout
uses: actions/checkout@v2
with:
GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
- name: setup nodejs
uses: actions/setup-node@v2
with:
node-version: 14.15.4
- run: git pull origin master
- name: yarn install
run: >
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >
.npmrc
# dist:
# runs-on: ubuntu-latest
# needs: release
# if: needs.release.outputs.new_release_published
# steps:
# - name: Checkout
# uses: actions/checkout@v2
# with:
# GITHUB_TOKEN: '${{ secrets.GITHUB_TOKEN }}'
# - name: setup nodejs
# uses: actions/setup-node@v2
# with:
# node-version: 14.15.4
# - run: git pull origin master
# - name: yarn install
# run: >
# echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" >
# .npmrc

yarn install --no-lockfile
- run: yarn build
- run: git add .
- run: git config user.email "frank@cocreate.app"
- run: git config user.name "frank pagan"
- run: git commit --allow-empty -m "add dist bundle"
- run: git push origin master
# yarn install --no-lockfile
# - run: yarn build
# - run: git add .
# - run: git config user.email "frank@cocreate.app"
# - run: git config user.name "frank pagan"
# - run: git commit --allow-empty -m "add dist bundle"
# - run: git push origin master
3 changes: 2 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
const index = {}


export default index;
export default index;

0 comments on commit 833798d

Please sign in to comment.