Skip to content

Commit

Permalink
Merge pull request #16 from AR-js-org/feature/dist-folder
Browse files Browse the repository at this point in the history
Build dist files
  • Loading branch information
nicolocarpignoli authored Mar 9, 2020
2 parents 84c4b7d + 0a2c35e commit b6fda13
Show file tree
Hide file tree
Showing 9 changed files with 32,381 additions and 56 deletions.
34 changes: 14 additions & 20 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,35 +2,29 @@ name: Release

on:
push:
tags:
- 'v*'
branches:
- master

jobs:
release:
runs-on: ubuntu-latest
if: "github.event.pull_request.merged && !contains(github.event.commits[0].message, 'skip ci')"
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: '12'
- run: yarn install
- run: yarn lint
- run: yarn test
- run: yarn build
- run: |
zip --junk-paths arjs-studio-backend.zip dist/*.js
- id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
- uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./arjs-studio-backend.zip
asset_name: arjs-studio-backend.zip
asset_content_type: application/zip
- name: Commit and tag dist files
run: |
git config --local user.name "${GITHUB_ACTOR}"
git config --local user.email "${GITHUB_ACTOR}@github.com"
yarn version --minor --no-git-tag-version
git add -A
TAG="v$(node -p "require('./package.json').version")"
git commit -m "- chore: version bump ($TAG)"
git tag "$TAG-dev"
git push --tags origin $GITHUB_REF
5 changes: 1 addition & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
name: Test and lint

on:
push:
branches:
- master
pull_request:
types: [opened, synchronize]

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
version: '12'
Expand Down
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,10 @@ logs
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*

# Dependency directories
/node_modules

# Build directory
/dist

# VS Code settings
.vscode

Expand Down
Loading

0 comments on commit b6fda13

Please sign in to comment.