mirror of
https://github.com/chenasraf/simple-scaffold.git
synced 2026-05-18 01:29:09 +00:00
v1.1 ### New features - Enable custom transformations with `beforeWrite` - Add built-in date formatting helpers ### Commit log * add develop branch * chore: remove unneeded dep * Update issue templates [skip ci] * update PR workflow * implementation of before-write callback + tests * clean up + update docs * add explicit function return types * bump version number * docs: add table of contents * correct version number * update workflows + release alpha * update README.md [skip ci] * update README.md [skip ci] * implement now & custom date helpers * docs + bump version number * docs cleanup * update docs * accept async beforeWrite callback * fix docs * remove redundent check * fix type import * update README.md [skip ci] * bump version number [skip ci] * update docs [skip ci]
53 lines
1.9 KiB
YAML
53 lines
1.9 KiB
YAML
name: Alpha Releases
|
|
|
|
on:
|
|
push:
|
|
branches: [develop]
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
if: "!contains(github.event.head_commit.message, '[skip ci]')"
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-node@v1
|
|
with:
|
|
node-version: "12.x"
|
|
- run: yarn install --frozen-lockfile
|
|
- run: yarn test
|
|
- run: yarn build
|
|
- run: cd ./dist && yarn pack --filename=../package.tgz
|
|
if: "!contains(github.event.head_commit.message, '[skip publish]')"
|
|
- uses: Klemensas/action-autotag@stable
|
|
if: "!contains(github.event.head_commit.message, '[skip publish]')"
|
|
id: update_tag
|
|
with:
|
|
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
|
|
tag_prefix: "v"
|
|
- name: Publish on NPM
|
|
uses: JS-DevTools/npm-publish@v1
|
|
if: "!contains(github.event.head_commit.message, '[skip publish]')"
|
|
with:
|
|
package: ./dist/package.json
|
|
token: "${{ secrets.NPM_TOKEN }}"
|
|
- name: Create Release
|
|
if: steps.update_tag.outputs.tagname && !contains(github.event.head_commit.message, '[skip publish]')
|
|
uses: actions/create-release@v1
|
|
id: create_release
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
prerelease: true
|
|
tag_name: ${{ steps.update_tag.outputs.tagname }}
|
|
release_name: Release ${{ steps.update_tag.outputs.tagname }}
|
|
- name: Upload Release Asset
|
|
if: steps.update_tag.outputs.tagname && !contains(github.event.head_commit.message, '[skip publish]')
|
|
id: upload-release-asset
|
|
uses: actions/upload-release-asset@v1
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
with:
|
|
upload_url: ${{ steps.create_release.outputs.upload_url }}
|
|
asset_path: ./package.tgz
|
|
asset_name: simple-scaffold ${{ steps.update_tag.outputs.tagname }}.tgz
|
|
asset_content_type: application/tgz
|