Skip to content

Commit

Permalink
Update release, remove fix.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Colin McDonnell committed Mar 19, 2022
1 parent 6a703d8 commit 0a5f644
Show file tree
Hide file tree
Showing 68 changed files with 43 additions and 10,298 deletions.
60 changes: 0 additions & 60 deletions .github/workflows/fix.yml

This file was deleted.

41 changes: 26 additions & 15 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
branches:
- "master"
- "ci"
paths:
- package.json
# paths:
# - package.json

jobs:
build_and_publish:
Expand All @@ -22,40 +22,51 @@ jobs:
uses: actions/setup-node@v1
with:
node-version: 16

- name: Install deps and build
- name: Install dependencies
run: |
yarn install
- name: Build, lint, format
run: |
yarn clean
yarn lint:fix
yarn prettier:fix
yarn build
- id: publish
- name: Commit and push
run: |
git add .
git config --global user.name 'ZodBot'
git config --global user.email 'bot@zodlabs.com'
git commit -am "chore: Format, lint, build Deno"
git push
- id: Publish to NPM
name: Publish to NPM
uses: JS-DevTools/npm-publish@v1
with:
token: ${{ secrets.NPM_TOKEN }}
dry-run: false
dry-run: true

- name: If Publish
- name: Post-publish
if: steps.publish.outputs.type != 'none'
run: |
echo "Published ${{ steps.publish.outputs.type }} version: ${{ steps.publish.outputs.version }}"
- name: If Version Unchanged
- name: Publish skipped
if: steps.publish.outputs.type == 'none'
run: |
echo "Version in package.json has not changed. Skipping."
- name: Write Changelog Config
- name: Configure changelog
run: |
echo '{"categories": [], "template": "## Commits:\n\n${{ '${{UNCATEGORIZED}}' }}", "pr_template": ${{ '"- ${{MERGE_SHA}} ${{TITLE}}"' }} }' > changelog_config.json
cat changelog_config.json
- name: Changelog Vars
run: |
echo "last_tag=$(git describe --tags --abbrev=0)" >> $GITHUB_ENV
echo "curr_commit=$(git rev-parse HEAD)" >> $GITHUB_ENV
- name: Build Changelog
- name: Generate changelog
id: github_release
uses: mikepenz/release-changelog-builder-action@v2.9.0
env:
Expand All @@ -66,7 +77,7 @@ jobs:
commitMode: true
configuration: changelog_config.json

- name: Create Release
- name: Create release
if: steps.publish.outputs.type != 'none'
id: create_release
uses: actions/create-release@latest
Expand All @@ -77,5 +88,5 @@ jobs:
release_name: v${{ steps.publish.outputs.version }}
commitish: ${{ github.ref }}
body: ${{steps.github_release.outputs.changelog}}
draft: false
draft: true
prerelease: false
12 changes: 4 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,15 @@ name: test

on:
push:
create:
pull_request:
schedule:
- cron: '44 4 * * SAT'
workflow_dispatch:

jobs:
test-node:
runs-on: Ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '14' ]
typescript: [ '4.1', '4.2', '4.3', '4.4' ]
typescript: [ '4.1', '4.2', '4.3', '4.4', '4.5', '4.6' ]
name: Test with TypeScript ${{ matrix.typescript }} on Node ${{ matrix.node }}
steps:
- uses: actions/checkout@v2
Expand All @@ -27,7 +23,7 @@ jobs:
- run: yarn test

test-deno:
runs-on: Ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
deno: [ "v1.x" ]
Expand All @@ -50,7 +46,7 @@ jobs:
working-directory: ./deno/lib
lint:
runs-on: Ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
node: [ '14' ]
Expand Down

0 comments on commit 0a5f644

Please sign in to comment.