Skip to content

fix resolve on objects #26

fix resolve on objects

fix resolve on objects #26

Workflow file for this run

# This workflow will run tests using node and then publish a package to GitHub Packages when a release is created
# For more information see: https://docs.github.com/en/actions/publishing-packages/publishing-nodejs-packages
name: Package
on:
push:
branches:
- master
jobs:
bump-version:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: vemel/[email protected]
with:
path: ./package.json
type: semver
result: ${{ github.event.inputs.bump }}
release: ${{ github.event.inputs.release }}
update: |
./package.json
- name: Commit changes
run: |
VERSION=${{ toJSON(steps.version.outputs.result) }}
git config --local user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --local user.name "github-actions[bot]"
git commit -am "Bump version to $VERSION"
git push
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm test
build:
needs:
- bump-version
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
- run: npm ci
- run: npm run build
- uses: actions/upload-artifact@v3
with:
name: package
path: package
publish-npm:
needs:
- build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: package
path: did-peer
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: npm publish --access public
working-directory: did-peer
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
publish-github:
needs:
- build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/download-artifact@v3
with:
name: package
path: did-peer
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://npm.pkg.github.com/aviarytech
- run: npm publish --access public
working-directory: did-peer
env:
NODE_AUTH_TOKEN: ${{secrets.npm_github_token}}