Skip to content

Commit

Permalink
add changeset and support for version releasing (#104)
Browse files Browse the repository at this point in the history
  • Loading branch information
satyamakgec authored Jul 27, 2022
1 parent a60765d commit d59b1e5
Show file tree
Hide file tree
Showing 6 changed files with 1,821 additions and 1 deletion.
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets)

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md)
11 changes: 11 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"$schema": "https://unpkg.com/@changesets/[email protected]/schema.json",
"changelog": ["@changesets/cli/changelog", {"repo": "onflow/flow-nft"}],
"commit": false,
"fixed": [],
"linked": [],
"access": "public",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": []
}
31 changes: 31 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: "🚀 release"

on:
push:
branches:
- master

concurrency: ${{ github.workflow }}-${{ github.ref }}

jobs:
release:
name: 🚀 release
runs-on: ubuntu-latest
steps:
- name: 📚 checkout
uses: actions/[email protected]
- name: 🟢 node
uses: actions/[email protected]
with:
node-version: 15
registry-url: https://registry.npmjs.org
- name: Install Dependencies
run: yarn
- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
publish: yarn release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.idea
.vscode
.vscode
node_modules
33 changes: 33 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
"name": "@onflow/flow-nft",
"version": "1.0.0",
"description": "standard implementation of the non fungible token on flow blockchain",
"main": "index.js",
"directories": {
"doc": "docs",
"lib": "lib"
},
"files": ["contracts/*", "transactions/*"],
"scripts": {
"release": "npm run changeset version && npm run changeset publish"
},
"repository": {
"type": "git",
"url": "git+https://github.com/onflow/flow-nft.git"
},
"keywords": [
"flow-nft",
"nft",
"NonFungibleToken",
"flow"
],
"author": "onFlow",
"license": "MIT",
"bugs": {
"url": "https://github.com/onflow/flow-nft/issues"
},
"homepage": "https://github.com/onflow/flow-nft#readme",
"dependencies": {
"@changesets/cli": "^2.23.0"
}
}
Loading

0 comments on commit d59b1e5

Please sign in to comment.