Skip to content

Commit

Permalink
Merge pull request #44 from openaddresses/date-fix
Browse files Browse the repository at this point in the history
Fix date, switch to Flat ESLint & add release
  • Loading branch information
ingalls authored Apr 18, 2024
2 parents f267c77 + 5a0887b commit 0378a83
Show file tree
Hide file tree
Showing 26 changed files with 990 additions and 1,422 deletions.
10 changes: 0 additions & 10 deletions .eslintrc.json

This file was deleted.

62 changes: 35 additions & 27 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,40 @@
name: NPM Release

on:
push:
tags:
- '*'
push:
tags:
- '*'

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1

- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/

- name: npm install
run: npm install

- name: npm run build
run: npm run build

- name: npm publish
run: npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_SECRET }}
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Get tag
id: tag
uses: dawidd6/action-get-tag@v1

- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://registry.npmjs.org/

- name: npm install
run: npm install

- name: npm run build
run: npm run build

- name: npm publish
run: npm publish
env:
NPM_TOKEN: ${{ secrets.NPM_SECRET }}

- name: Generate CHANGELOG
run: ./release ${{steps.tag.outputs.tag}} > RELEASE

- name: Github Release
uses: softprops/action-gh-release@v2
with:
body_path: RELEASE
72 changes: 0 additions & 72 deletions dist/cli.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/cli.js.map

This file was deleted.

142 changes: 0 additions & 142 deletions dist/index.js

This file was deleted.

1 change: 0 additions & 1 deletion dist/index.js.map

This file was deleted.

Loading

0 comments on commit 0378a83

Please sign in to comment.