Skip to content

Commit

Permalink
🔖 0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanren1225 committed May 24, 2022
1 parent 1a2e12d commit 8f223e2
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 6 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# 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://help.github.com/actions/language-and-framework-guides/publishing-nodejs-packages

name: Node.js Package

on:
release:
types: [created]

jobs:
publish-npm:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- run: yarn
- run: yarn build
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vue3-coinbase-commerce",
"license": "MIT",
"version": "0.0.0",
"version": "0.0.1",
"author": {
"name": "EndureBlaze",
"email": "[email protected]",
Expand Down Expand Up @@ -43,8 +43,7 @@
"types": "dist/package/index.d.ts",
"dependencies": {
"sass": "^1.52.0",
"vue": "^3.2.25",
"vue3-coinbase-commerce": "^0.0.1"
"vue": "^3.2.25"
},
"devDependencies": {
"@vitejs/plugin-vue": "^2.3.3",
Expand Down
6 changes: 3 additions & 3 deletions src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
// This starter template is using Vue 3 <script setup> SFCs
// Check out https://vuejs.org/api/sfc-script-setup.html#script-setup
import HelloWorld from './components/HelloWorld.vue'
import { CoinbaseCommerceButton } from 'vue3-coinbase-commerce'
// import { CoinbaseCommerceButton } from 'vue3-coinbase-commerce'
// import 'vue3-coinbase-commerce/dist/style.css'
</script>

<template>
<img alt="Vue logo" src="./assets/logo.png" />
<HelloWorld msg="Hello Vue 3 + TypeScript + Vite" />
<CoinbaseCommerceButton :checkout-id="'75f4d64a-0073-49dc-a46b-566a50ab8325'"
<!-- <CoinbaseCommerceButton :checkout-id="'75f4d64a-0073-49dc-a46b-566a50ab8325'"
>123</CoinbaseCommerceButton
>
> -->
</template>

<style>
Expand Down

0 comments on commit 8f223e2

Please sign in to comment.