Skip to content

Commit

Permalink
Update Release file
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Apr 16, 2024
1 parent dd95475 commit c808c4a
Showing 1 changed file with 43 additions and 43 deletions.
86 changes: 43 additions & 43 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,50 +1,50 @@
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

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- 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_TOKEN }}

- name: Release
uses: softprops/action-gh-release@v2
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

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

- name: Cache node modules
uses: actions/cache@v2
env:
cache-name: cache-node-modules
with:
# npm cache files are stored in `~/.npm` on Linux/macOS
path: ~/.npm
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/package.json') }}
restore-keys: |
${{ runner.os }}-build-${{ env.cache-name }}-
${{ runner.os }}-build-
${{ runner.os }}-
- 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_TOKEN }}

- name: Github Release
uses: softprops/action-gh-release@v2


0 comments on commit c808c4a

Please sign in to comment.