Skip to content

Commit

Permalink
Add a workflow to publish package to gitea (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
prathamesh0 authored Nov 29, 2022
1 parent 0d50ac1 commit ad51dbd
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 4 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish-gitea.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Publish npm package to gitea
on:
release:
types: [published]
jobs:
npm_publish:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [ 16.x ]
steps:
- name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- run: yarn
- name: Run yarn build
run: |
yarn build
- name: Configure git.vdb.to npm registry
run: |
npm config set registry https://git.vdb.to/api/packages/cerc-io/npm/
- name: Authenticate to git.vdb.to registry
run: |
npm config set -- '//git.vdb.to/api/packages/cerc-io/npm/:_authToken' "${{ secrets.GITEA_PUBLISH_TOKEN }}"
- name: npm publish
run: |
npm publish
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@vulcanize/assemblyscript",
"name": "assemblyscript",
"description": "Definitely not a TypeScript to WebAssembly compiler.",
"keywords": [
"typescript",
Expand Down Expand Up @@ -131,6 +131,6 @@
"url": "https://opencollective.com/assemblyscript"
},
"publishConfig": {
"registry": "https://npm.pkg.github.com"
"registry": "https://git.vdb.to/api/packages/cerc-io/npm/"
}
}

0 comments on commit ad51dbd

Please sign in to comment.