Skip to content

Commit

Permalink
Copy workflows from svelte-webext-storage-adapter
Browse files Browse the repository at this point in the history
  • Loading branch information
PixievoltNo1 committed Apr 4, 2024
1 parent 9f91648 commit 3db8463
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
cache: 'npm'
Expand Down
20 changes: 20 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Publish to npm

on:
push:
tags: [ "v[0-9]*" ]

jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: latest
- run: npm ci
- run: npm test
- uses: JS-DevTools/npm-publish@v3
with:
token: ${{ secrets.NPM_TOKEN }}
tag: ${{ contains(github.ref_name, '-') && 'next' || 'latest' }}

0 comments on commit 3db8463

Please sign in to comment.