Skip to content

Commit

Permalink
release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
xhyrom committed Jan 4, 2022
1 parent c0e915f commit 8c7f8ec
Show file tree
Hide file tree
Showing 4 changed files with 54 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ko_fi: garlicteam
12 changes: 12 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
**Please describe the changes this PR makes and why it should be merged:**


**Status and versioning classification:**

<!--
Please move lines that apply to you out of the comment:
- I know how to update typings and have done so, or typings don't need updating
- This PR changes the library's interface (methods or parameters added)
- This PR includes breaking changes (methods removed or renamed, parameters moved or removed)
- This PR **only** includes non-code changes, like changes to documentation, README, etc.
-->
40 changes: 40 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: "Release"

on: [workflow_dispatch]

jobs:
release:
name: publish
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v2
- name: node
uses: actions/setup-node@v2
with:
node-version: 12
registry-url: https://registry.npmjs.org/

- name: Install
run: npm install ci

- name: build
run: npm run build

- name: Get version & asign
id: get_version
run: |
variable=$(jq --raw-output '.version' package.json)
echo ::set-output name=version::$variable
- name: Publish releases
uses: ncipollo/release-action@v1
with:
tag: ${{ steps.get_version.outputs.version }}
name: ${{ steps.get_version.outputs.version }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Publish NPM
run: npm publish --access public
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_AUTH_TOKEN}}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "gcommands-cli",
"name": "@gcommands/cli",
"version": "0.1.0-nextdev",
"description": "",
"type": "module",
Expand Down

0 comments on commit 8c7f8ec

Please sign in to comment.