Skip to content

Commit ffb02eb

Browse files
authored
Merge pull request #4644 from reduxjs/publish-ci
Add publish CI workflow
2 parents fa2d899 + d641945 commit ffb02eb

File tree

2 files changed

+25
-1
lines changed

2 files changed

+25
-1
lines changed

.github/FUNDING.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: [timdorr, markerikson, phryneas]
1+
github: [timdorr, markerikson, phryneas, EskiMojo14]

.github/workflows/publish.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Publish Package to npmjs
2+
on:
3+
# keeping it purely manual for now as to not accidentally trigger a release
4+
#release:
5+
# types: [published]
6+
workflow_dispatch:
7+
jobs:
8+
publish:
9+
runs-on: ubuntu-latest
10+
permissions:
11+
id-token: write
12+
contents: read
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: '18.x'
18+
registry-url: 'https://registry.npmjs.org'
19+
cache: 'yarn'
20+
- run: yarn install --frozen-lockfile
21+
- run: yarn test
22+
- run: npm publish --access public --provenance
23+
env:
24+
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

0 commit comments

Comments
 (0)