Skip to content

0.1.0

0.1.0 #13

Workflow file for this run

name: Publish package
on:
release:
types: [created]
jobs:
publish-gpr:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
registry-url: "https://registry.npmjs.org"
- run: yarn install
- name: Prepare the release
run: yarn prepare:release
- name: Commit and push updated package.json (nearfs cid)
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add package.json
git commit -m "Update package.json with new nearfs cid [skip ci]"
git push
- name: Publish to NPM
run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}