mirror of
https://github.com/orionprotocol/sdk.git
synced 2026-03-14 06:02:36 +03:00
Test prerelease
This commit is contained in:
25
.github/workflows/prerelease-package.yml
vendored
Normal file
25
.github/workflows/prerelease-package.yml
vendored
Normal file
@@ -0,0 +1,25 @@
|
||||
name: Prerelease
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- 'main'
|
||||
|
||||
jobs:
|
||||
build-and-publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: '17.x'
|
||||
- run: npm ci
|
||||
- run: npm test
|
||||
- name: Set package registry
|
||||
run: npm config set registry https://npm.pkg.github.com
|
||||
- name: Github package registry authentication
|
||||
run: npm set //npm.pkg.github.com/:_authToken ${{ secrets.GITHUB_TOKEN }}
|
||||
- name: Npm registry authentication
|
||||
run: npm set //registry.npmjs.org/:_authToken ${{ secrets.NPM_TOKEN }}
|
||||
- name: Publish the package to Github and Npm package registries
|
||||
run: npm publish --tag next
|
||||
Reference in New Issue
Block a user