Skip to content

Commit

Permalink
Test prerelease flag
Browse files Browse the repository at this point in the history
  • Loading branch information
mdaines committed Jun 14, 2023
1 parent aac7ed7 commit 76dfecc
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ jobs:
release:
needs: build
runs-on: ubuntu-latest
permissions:
contents: write
# permissions:
# contents: write
steps:
- uses: actions/checkout@v3

Expand All @@ -22,31 +22,31 @@ jobs:
path: lib

- run: |
gh release create ${{ contains(github.ref, '.pre-') && '--prerelease' || '' }} ${{ github.ref }} lib/*
gh release create ${{ contains(github.ref, '.pre-') && '--prerelease' }} ${{ github.ref }} lib/*
env:
GH_TOKEN: ${{ github.token }}
publish:
needs: [build, release]
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v3

- uses: actions/download-artifact@v3
with:
name: lib
path: lib

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

- run: npm install -g npm

- run: npm publish --provenance --access public
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# publish:
# needs: [build, release]
# runs-on: ubuntu-latest
# permissions:
# contents: read
# id-token: write
# steps:
# - uses: actions/checkout@v3
#
# - uses: actions/download-artifact@v3
# with:
# name: lib
# path: lib
#
# - uses: actions/setup-node@v3
# with:
# node-version: "18.x"
# registry-url: "https://registry.npmjs.org"
#
# - run: npm install -g npm
#
# - run: npm publish --provenance --access public
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 comments on commit 76dfecc

Please sign in to comment.