Skip to content

Commit

Permalink
Merge pull request #3 from Akord-com/set-1.0.0
Browse files Browse the repository at this point in the history
major release 1.0.0
  • Loading branch information
jarrvis authored Sep 27, 2022
2 parents fa05f57 + 4733fc3 commit ee38ced
Show file tree
Hide file tree
Showing 3 changed files with 83 additions and 0 deletions.
33 changes: 33 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Create Release And Publish"

on:
push:
tags:
- "v*"

jobs:
build:
name: Create Release
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Changelog
uses: scottbrenner/generate-changelog-action@v1.3.3
id: Changelog
env:
REPO: ${{ github.repository }}
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
body: |
${{ steps.Changelog.outputs.changelog }}
draft: false
prerelease: false
20 changes: 20 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish Package to npmjs
on:
release:
types: [created]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'
- name: Install dependencies and build 🔧
run: yarn install && yarn build
- name: Publish package on NPM 📦
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
30 changes: 30 additions & 0 deletions .github/workflows/version-bump.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: "Start new build"

on: workflow_dispatch

jobs:
bump-version:
name: "Bump Version on master"
runs-on: ubuntu-latest

steps:
- name: "Checkout source code"
uses: "actions/checkout@v2"
with:
ref: ${{ github.ref }}
token: ${{ secrets.PAT_TOKEN }}
- name: "cat package.json"
run: cat ./package.json
- name: Automated Version Bump
id: version-bump
uses: phips28/gh-action-bump-version@v9.0.27
with:
tag-prefix: "v"
env:
GITHUB_TOKEN: ${{ secrets.PAT_TOKEN }}
- name: "cat package.json"
run: cat ./package.json
- name: "Output Step"
env:
NEW_TAG: ${{ steps.version-bump.outputs.newTag }}
run: echo "new tag $NEW_TAG"

0 comments on commit ee38ced

Please sign in to comment.