Skip to content

Commit

Permalink
Merge pull request #9 from Navigraph/fix-workflow
Browse files Browse the repository at this point in the history
chore: make workflow publish prereleases
  • Loading branch information
ZigTag authored Dec 3, 2024
2 parents 67bf38e + e407f66 commit e6f4721
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .github/workflows/pre-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,24 @@ jobs:
generate_release_notes: true

# Enable in future to automate publishing of NPM package
# release-js:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v4

# - uses: actions/setup-node@v4
# with:
# node-version: "18"
# registry-url: 'https://registry.npmjs.org'
# cache: "npm"

# - name: Install node modules
# run: npm ci

# - name: Build JS Interface
# run: cd src/js && npm run build

# - name: Publish to NPM
# env:
# NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
# run: cd src/js && npm publish --tag next
release-js:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: actions/setup-node@v4
with:
node-version: "18"
registry-url: 'https://registry.npmjs.org'
cache: "npm"

- name: Install node modules
run: npm ci

- name: Build JS Interface
run: cd src/js && npm run build

- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: cd src/js && npm publish --tag next

0 comments on commit e6f4721

Please sign in to comment.