Skip to content

Commit

Permalink
github release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
burtek committed May 13, 2023
1 parent d64c9b3 commit 56e1260
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 5 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/make-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: 'Make github and npm releases'

on:
push:
tags:
- "v*"

jobs:
make-release:
name: 'Make github and npm releases'
runs-on: ubuntu-latest

steps:
- name: 'Checkout source code'
uses: 'actions/checkout@v2'
with:
ref: ${{ github.ref }}
- name: 'Setup node'
uses: actions/setup-node@v2
with:
node-version: '14.x'
registry-url: 'https://registry.npmjs.org'
scope: '@dtrw'
- name: 'Create a github release'
uses: "marvinpinto/action-automatic-releases@latest"
with:
repo_token: "${{ secrets.GITHUB_TOKEN }}"
prerelease: false
automatic_release_tag: "${{ github.ref_name }}"
title: "${{ github.ref_name }}"
files: |
LICENSE
TODO.md
README.md
package.json
yarn.lock
configs/**/*
docs/**/*
rules/**/*
tests/**/*
index.js
import-types.d.ts
- name: 'Install dependencies'
run: yarn
# - name: 'Test configs'
# run: yarn test
- name: 'Publish package'
run: yarn publish --tag latest --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
Empty file.
13 changes: 9 additions & 4 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
/node_modules/
/.github/
/node_modules
/.github
/.gitignore
/.markdownlint.json
/.eslintrc
/.eslintrc.txt
/eslint.config.js
/tests
/src
/import-types.d.ts
/docs
/*.md
/tsconfig.json
/yarn.lock
1 change: 0 additions & 1 deletion TODO.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,5 @@
- create no-splice-add and no-splice-remove rules and include in base
- fix TS issues and upgrade plugins as they transition to FlatConfig
- add tests
- create release workflow for github
- TS declaration for config
- run `tsc` on precommit

0 comments on commit 56e1260

Please sign in to comment.