Skip to content

Commit

Permalink
release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
johnnyshankman committed Nov 4, 2023
1 parent 1520c8e commit 9fbb22a
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Release
on: [workflow_dispatch]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: '16.x'
cache: 'yarn'

- name: Install dependencies
run: |
echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > .npmrc
yarn install --immutable
- name: Lint
run: yarn lint

- name: Build
run: yarn build

- name: Package
run: yarn package

- name: get-npm-version
id: package-version
uses: martinbeentjes/npm-get-version-action@main

- name: Publish Release on Github
uses: marvinpinto/action-automatic-releases@latest
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
automatic_release_tag: ${{ steps.package-version.outputs.current-version}}
prerelease: false
files: |
release/**/*

0 comments on commit 9fbb22a

Please sign in to comment.