Added new apis #83
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Development Test | |
on: | |
push: | |
branches-ignore: | |
- main | |
pull_request: | |
branches: | |
- "*" | |
env: | |
PALADINS_DEV_ID: ${{ secrets.PALADINS_DEV_ID }} | |
PALADINS_API_KEY: ${{ secrets.PALADINS_API_KEY }} | |
NPM_TOKEN: ${{ secrets.NPM_TOKEN }} | |
jobs: | |
test: | |
name: "test 🧪" | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm ci | |
- name: Build docker image | |
run: npm run test | |
deploy-test: | |
name: "deploy test 🚀" | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout source code | |
uses: actions/checkout@v4 | |
- name: Install dependencies | |
run: npm ci | |
- name: Publish package to npm | |
uses: JS-DevTools/npm-publish@v1 | |
with: | |
token: ${{ env.NPM_TOKEN }} | |
dry-run: true |